one stop for all game coders..
| AxisAffinity property |
|
|
| Written by CR Team | |||||||
| Tuesday, 25 August 2009 16:50 | |||||||
|
Director 11.5 introduced a rigidbody property called the axisAffinity. All rigid bodies by default seem to have a tendency to curve towards a random axis . To avoid this one can make use of this property. AxisAffinity is a Boolean value. the default value is false. That means rigid bodies may tend to curve ( Note that this visible only when small force is applied on the rigid body ).
Set the axisAffinity property of a rigid body to false only if required, say a cue ball which has to travel the right path.
Setting this property to false for all rigid body can increase computation and hence result in performance degradation The cool thing would be to simulate a corner curve kick in footbal ! Example: Hold a special key and the user is allowed to curve kick,i.e axisaffinity set to false on the footbal A normal kick with axisAffinity set to true
|
|||||||