A constraint actuator limits the position, rotation, distance or
orientation of an object.
Properties:
|
|
integer
|
getDamp()
Returns the damping time of the constraint. |
source code
|
|
|
|
float
|
|
|
|
float
|
|
|
|
|
|
|
|
integer
|
getRotDamp()
Returns the damping time for application of the constraint. |
source code
|
|
|
|
3-tuple
|
getDirection()
Returns the reference direction of the orientation constraint in
world coordinate. |
source code
|
|
|
|
integer
|
|
|
|
integer
|
|
|
setProperty(property)
Sets the name of the property or material for the ray detection of
the distance constraint. |
source code
|
|
string
|
getProperty()
Returns the property parameter. |
source code
|
|
|
|
float
|
getDistance()
Returns the distance parameter. |
source code
|
|
|
|
float
|
getRayLength()
Returns the length of the ray |
source code
|
|
integer
|
|
KX_GameObject
|
|
|
|
string
|
|
bool
|
isA(game_type)
Check if this is a type or a subtype game_type. |
source code
|
|
integer
|
damp
time constant of the constraint expressed in frame (not use by
Force field constraint)
|
3-tuple of float: [x,y,z]
|
direction
the reference direction in world coordinate for the orientation
constraint
|
float
|
distance
the target distance of the distance constraint
|
integer
|
limit
type of constraint, use one of the following constant:
KX_ACT_CONSTRAINT_LOCX ( 1) : limit X coord KX_ACT_CONSTRAINT_LOCY
( 2) : limit Y coord KX_ACT_CONSTRAINT_LOCZ ( 3) : limit Z coord
KX_ACT_CONSTRAINT_ROTX ( 4) : limit X rotation
KX_ACT_CONSTRAINT_ROTY ( 5) : limit Y rotation
KX_ACT_CONSTRAINT_ROTZ ( 6) : limit Z rotation
KX_ACT_CONSTRAINT_DIRPX ( 7) : set distance along positive X axis
KX_ACT_CONSTRAINT_DIRPY ( 8) : set distance along positive Y axis
KX_ACT_CONSTRAINT_DIRPZ ( 9) : set distance along positive Z axis
KX_ACT_CONSTRAINT_DIRNX (10) : set distance along negative X axis
KX_ACT_CONSTRAINT_DIRNY (11) : set distance along negative Y axis
KX_ACT_CONSTRAINT_DIRNZ (12) : set distance along negative Z axis
KX_ACT_CONSTRAINT_ORIX (13) : set orientation of X axis
KX_ACT_CONSTRAINT_ORIY (14) : set orientation of Y axis
KX_ACT_CONSTRAINT_ORIZ (15) : set orientation of Z axis
KX_ACT_CONSTRAINT_FHPX (16) : set force field along positive X axis
KX_ACT_CONSTRAINT_FHPY (17) : set force field along positive Y axis
KX_ACT_CONSTRAINT_FHPZ (18) : set force field along positive Z axis
KX_ACT_CONSTRAINT_FHNX (19) : set force field along negative X axis
KX_ACT_CONSTRAINT_FHNY (20) : set force field along negative Y axis
KX_ACT_CONSTRAINT_FHNZ (21) : set force field along negative Z
axis
|
float
|
max
the upper bound of the constraint.
|
float
|
min
The lower bound of the constraint For the rotation and orientation
constraint, it represents radiant
|
integer
|
option
Binary combination of the following values: Applicable to Distance
constraint:
|
string
|
propName
the name of the property or material for the ray detection of the
distance constraint.
|
float
|
rayLength
the length of the ray of the distance constraint.
|
integer
|
rotDamp
time constant for the rotation expressed in frame (only for the
distance constraint) 0 = use damp for rotation as well
|
integer
|
time
activation time of the actuator.
|
int
|
executePriority
This determines the order controllers are evaluated, and actuators
are activated (lower priority is executed first).
|
string
|
name
The name of this CValue derived object (read-only).
|
KX_GameObject or None in exceptional cases.
|
owner
The game object this logic brick is attached to (read-only).
|
bool
|
invalid
Test if the object has been freed by the game engine and is no
longer valid.
|