I don't need to test my programs. I have an error-correcting modem.

Difference between revisions of "UE3:UTSkelControl MassBoneScaling (UDK)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Talk)
 
(Talk)
Line 26: Line 26:
 
{{code|native final function '''SetBoneScale''' ([[name]] '''BoneName''', [[float]] '''Scale''')}}
 
{{code|native final function '''SetBoneScale''' ([[name]] '''BoneName''', [[float]] '''Scale''')}}
  
<!-- enter function description -->
+
sets the given bone to the given scale
 +
 
 +
'''Note:''' this controller must be hooked up to the specified bone in the AnimTree for this to have any effect

Revision as of 06:24, 17 January 2010

UDK Object >> AnimObject >> SkelControlBase >> UTSkelControl_MassBoneScaling
Package: 
UTGame
This class in other games:
UT3

skeletal controller that provides a cleaner and more efficient way to handle scaling for many bones in a mesh

Properties

Property group 'UTSkelControl_MassBoneScaling'

BoneScales

Type: array<float>

bone scales - indices match mesh's bone indices

Native functions

GetBoneScale

native final function float GetBoneScale (name BoneName)

returns the scale this control has for the given bone

Note: does not take into account any other controls that are affecting the bone's scale

SetBoneScale

native final function SetBoneScale (name BoneName, float Scale)

sets the given bone to the given scale

Note: this controller must be hooked up to the specified bone in the AnimTree for this to have any effect