Wall_Repel_Behavior : ReferenceTarget

Wall_Repel_Behavior - superclass: ReferenceTarget; super-superclass:MAXWrapper - 13:0 - classID: #(1562862216, 1902539325) 
 

   

Character Studio - Quick Navigation

Constructor

Wall_Repel_Behavior ... WallRepelBehavior ... 

Properties

<Wall_Repel_Behavior>.name String Default: "Wall Repel" 

Get/Set the name of the behavior.

   

<Wall_Repel_Behavior>.repelGrids ArrayParameter Default: #() -- node array 

Set the repelling grid.

   

<Wall_Repel_Behavior>.repelMethod Integer Default: 0 -- animatable 

Determines whether delegate direction as influenced by the behavior is calculated by an angular method or a force method.

0 - Angle: Applies a force to the delegate based on the angle between the delegate's current direction and the direction it would need to take in order to be moving directly away from the source. If the behavior's Weight is set to 1 the delegate will be given a force that points directly away from the source. If Weight is set to .5, the force will bisect the angle between its current direction and the direction opposite that of the source.

1 - Force: Always applies a force directly away from the source, but at different magnitudes. If the behavior's Weight is 1, the magnitude of the force will be the average speed. If the Weight is .5, the magnitude of the force will be half the average speed.

   

<Wall_Repel_Behavior>.repelDirection Integer Default: 0 -- animatable 

Determines whether the grid repels from its positive-axis side, its negative-axis side, or both.

0 - Positive Axis: The grid repels only from the positive-axis side.

1 - Negative Axis: The grid repels only from the negative-axis side.

2 - Both Axes: The grid repels from both sides.

   

<Wall_Repel_Behavior>.useDistance Boolean Default: True 

When true, the behavior applies only to delegates closer to the target than the outerRadius value.

   

<Wall_Repel_Behavior>.innerDistance Float Default: 0.0 -- animatable 

The distance from the target at which the force is applied at full strength.

   

<Wall_Repel_Behavior>.outerDistance Float Default: 10.0 -- animatable 

The distance from the target at which the force begins to be applied.

   

<Wall_Repel_Behavior>.falloff Float Default: 2.0 -- animatable 

   

<Wall_Repel_Behavior>.showDistance Boolean Default: True 

Shows the inner and outer distance settings as grids offset from the target grid in the viewports. The . innerDistance grid is light blue, while . outerDistance grid is blue-white.

   

<Wall_Repel_Behavior>.gridSpacing Integer Default: 500 

Specifies the spacing of grid lines used to draw the Inner/Outer Distance grids. The lower the value, the closer the spacing.

   

<Wall_Repel_Behavior>.gridEnd Boolean Default: True Alias: End_force_at_grid_edges 

When true, the force emanates only from the grid object. When off, the force emanates from an imaginary infinite grid created by extending the grid plane in all directions.

   

<Wall_Repel_Behavior>.forceColor Color Default: (color 255 0 255) 

Sets the color used to draw the Wall Repel force during the solution.

   

<Wall_Repel_Behavior>.displayForce Boolean Default: True 

The force, when activated, is drawn in the viewports as a wireframe rectangle during the simulation solution.

See Also