Constraint Actuator: Distance

Distance Constraint:
  • Sets the distance the game object has to be from a surface
     
  • Distance is measured from the object center of the game object
Constraints Mode:
  • Distance Constraint
Direction:
  • Axis direction to apply the distance constraint
    • None = Don't use the Distance Constraint
       
    • X axis
       
    • Y axis
       
    • Z axis
       
    • -X axis
       
    • -Y axis
       
    • -Z axis
L:
  • Enabled:
    • Game object local axis
  • Disabled:
    • World axis
N:
  • Enabled:
    • Orient the selected game object axis with the mesh normal
  • Disabled:
    • Orient the selected game object axis with the world axis
Range:
  • Maximum length of the constraint ray
     
  • Range:
    • 0.00 - 2000.00
Force Distance:
  • Enabled: 
    • Keep this distance from target
  • Range: 
    • -2000.00 to 2000.00
Damping:
  • Frames it takes to achieve Force Distance
     
  • Range:
    • 0 to 100 Frames
M/P:
  • Material/Property toggle
     
  • Material:
    • Material on another Game Object that will trigger the Distance Constraint
  • Property:
    • Property on another Game Object that will trigger the Distance Constraint
Material/Property Name:
  • Name of Material/Property that will trigger the Distance Constraint
     
  • Leave blank for all materials/properties to trigger Distance Constraint
PER:
  • Enabled:
    • Distance Constraint actuator stays active even if the ray doesn't touch a target
  • Disabled:
    • Distance Constraint actuator becomes inactive if tge ray doesn't touch a target
Time:
  • Maximum amount of the time (frames) that you want the Distance Constraint Actuator to be active
     
  • Range:
    • 0 to 1000
  • 0 = always active
RotDamp:
  • Use a different damping for the rotation
     
  • Range:
    • 0 to 100
Note:
  • To use the Distance Constraint on more than one axis, use another Constraint Actuator
Constraint:
  • The type of Actuator
Name:
  • Actuator name
Pin:
  • Enabled: 
    • Always display the Actuator
  • Disabled: 
    • Only display when the State Mask group the Actuator is linked to is being displayed
Checkbox:
  • Enabled:
    • Actuator is turned on
  • Disabled:
    • Actuator is turned off
Note:
  • Actuators can be connected to more than one controller
     
  • Actuators connected to a controller(s) belong to the same State Mask group(s) as the controller(s)