SpringPositionController - superclass: PositionController

SpringPositionController - superclass: PositionController; super-superclass:MAXWrapper - 8:1 - classID: #(2036956458, -222780984) 

Value > MAXWrapper > Controllers > PositionController >SpringPositionController

 

   

Animation Controllers - Quick Navigation

Constructors

SpringPositionController ... PositionSpring ... 

Properties:

<SpringPositionController>.effectHow Integer default: 1 -- radio button number; Abs_Rel 

   

<SpringPositionController>.forceNode ArrayParameter default: #() -- node array; Force_Nodes; SubAnim 

   

<SpringPositionController>.steps Integer default: 2 -- integer 

   

<SpringPositionController>.x_effect Float default: 100.0 -- animatable; float 

These settings let you control the percentage of the effect on the individual world axes. Default=100. Range=0 to 200.

   

<SpringPositionController>.y_effect Float default: 100.0 -- animatable; float 

These settings let you control the percentage of the effect on the individual world axes. Default=100. Range=0 to 200.

   

<SpringPositionController>.z_effect Float default: 100.0 -- animatable; float 

These settings let you control the percentage of the effect on the individual world axes. Default=100. Range=0 to 200.

   

<SpringPositionController>.start Integer default: 0 -- integer; Start_Frame 

   

<SpringPositionController>.position Point3 default: [0,0,0] -- animatable; point3 

   

SpringPoint3Controller Interfaces:

Interface: Spring

Methods

   

<float>getMass() 

Returns the mass.

   

<void>setMass <float>mass 

Sets the mass. The mass of the object to which the Spring controller is applied. Increasing the mass causes the "bouncing" spring motion to become more exaggerated.

   

<float>getDrag () 

Returns the drag.

   

<void>setDrag <float>drag 

Sets the drag. Acts as air friction on the spring motion. A low Drag setting results in a greater "bouncing" effect, while a high Drag results in subdued bouncing. Default=1. Range=0 to 10.

   

<float>getTension <index>springIndex 

Gets the tension for the spring corresponding to the index.

   

<void>setTension <index>springIndex<float>tension 

Sets the tension for the spring corresponding to the index. The "stiffness" of the virtual spring between the controlled object and the highlighted spring object(s).

   

<float>getDampening <index>springIndex 

Gets the dampening for the spring corresponding to the index.

   

<void>setDampening <index>springIndex<float>dampening 

Sets the dampening for the spring corresponding to the index. Acts as a multiplier of an internal factor that determines how quickly the object comes to rest. With the Self Influence spring, changing Dampening has the same effect as changing Drag. With other springs, Dampening affects only the movement caused by that spring. Internally, the dampening value is proportional to the tension, so as you increase the tension and make the solution more stiff, the dampening is increased to maintain system stability.

   

<boolean>addSpring <node>node 

Adds the node to the spring list. Returns true if successful, false otherwise

   

<integer>getSpringCount () 

Returns the number of springs in the spring system.

   

<void>removeSpringByIndex <index>springIndex 

Removes the spring corresponding to the index.

   

<void>removeSpring <node>node 

Removes the spring if the node is in the spring list.

   

See Also