The object actuator ("Motion Actuator") applies force,
torque, displacement, angular displacement, velocity, or angular velocity
to an object. Servo control allows to regulate force to achieve a certain
speed target.
bool
|
|
list [fx, fy, fz, local]
|
getForce()
Returns the force applied by the actuator. |
|
|
|
setForce(fx,
fy,
fz,
local)
Sets the force applied by the actuator. |
|
|
list [Τx, Τy, Τz, local]
|
getTorque()
Returns the torque applied by the actuator. |
|
|
|
setTorque(tx,
ty,
tz,
local)
Sets the torque applied by the actuator. |
|
|
list [dx, dy, dz, local]
|
getDLoc()
Returns the displacement vector applied by the actuator. |
|
|
|
setDLoc(dx,
dy,
dz,
local)
Sets the displacement vector applied by the actuator. |
|
|
list [dx, dy, dz, local]
|
getDRot()
Returns the angular displacement vector applied by the actuator. |
|
|
|
setDRot(dx,
dy,
dz,
local)
Sets the angular displacement vector applied by the actuator. |
|
|
list [vx, vy, vz, local]
|
|
|
setLinearVelocity(vx,
vy,
vz,
local)
Sets the linear velocity applied by the actuator. |
|
|
list [ωx, ωy, ωz, local]
|
|
|
|
integer
|
getDamping()
Returns the damping parameter of the servo controller. |
|
|
|
setDamping(damp)
Sets the damping parameter of the servo controller. |
|
|
list [min, max, enabled]
|
getForceLimitX()
Returns the min/max force limit along the X axis used by the servo
controller. |
|
|
|
setForceLimitX(min,
max,
enable)
Sets the min/max force limit along the X axis and activates or
deactivates the limits in the servo controller. |
|
|
list [min, max, enabled]
|
getForceLimitY()
Returns the min/max force limit along the Y axis used by the servo
controller. |
|
|
|
setForceLimitY(min,
max,
enable)
Sets the min/max force limit along the Y axis and activates or
deactivates the limits in the servo controller. |
|
|
list [min, max, enabled]
|
getForceLimitZ()
Returns the min/max force limit along the Z axis used by the servo
controller. |
|
|
|
setForceLimitZ(min,
max,
enable)
Sets the min/max force limit along the Z axis and activates or
deactivates the limits in the servo controller. |
|
|
list [P, I, D]
|
getPID()
Returns the PID coefficient of the servo controller. |
|
|
|
setPID(P,
I,
D)
Sets the PID coefficients of the servo controller. |
|
|
integer
|
|
string
|
|
KX_GameObject
|
|
|
|
list [x, y, z]
|
angV
The angular velocity applied by the actuator
|
list [x, y, z]
|
dLoc
The displacement vector applied by the actuator
|
list [x, y, z]
|
dRot
The angular displacement vector applied by the actuator
|
short
|
damping
The damping parameter of the servo controller
|
int
|
executePriority
This determines the order controllers are evaluated, and actuators
are activated (lower priority is executed first).
(Inherited from GameTypes.SCA_ILogicBrick)
|
list [x, y, z]
|
force
The force applied by the actuator
|
list [min(float), max(float), bool]
|
forceLimitX
The min/max force limit along the X axis and activates or deactivates
the limits in the servo controller
|
list [min(float), max(float), bool]
|
forceLimitY
The min/max force limit along the Y axis and activates or deactivates
the limits in the servo controller
|
list [min(float), max(float), bool]
|
forceLimitZ
The min/max force limit along the Z axis and activates or deactivates
the limits in the servo controller
|
bool
|
invalid
Test if the object has been freed by the game engine and is no longer
valid.
(Inherited from GameTypes.PyObjectPlus)
|
list [x, y, z]
|
linV
The linear velocity applied by the actuator
|
string
|
name
The name of this CValue derived object (read-only).
(Inherited from GameTypes.SCA_ILogicBrick)
|
KX_GameObject or None in exceptional cases.
|
owner
The game object this logic brick is attached to (read-only).
(Inherited from GameTypes.SCA_ILogicBrick)
|
list of floats [proportional, integral, derivate]
|
pid
The PID coefficients of the servo controller
|
KX_GameObject or None
|
reference
The object that is used as reference to compute the velocity for the
servo controller.
|
list [x, y, z]
|
torque
The torque applied by the actuator
|
bool
|
useLocalAngV
A flag specifying if the angular velocity is local
|
bool
|
useLocalDLoc
A flag specifying if the dLoc is local
|
bool
|
useLocalDRot
A flag specifying if the dRot is local
|
bool
|
useLocalForce
A flag specifying if the force is local
|
bool
|
useLocalLinV
A flag specifying if the linear velocity is local
|
bool
|
useLocalTorque
A flag specifying if the torque is local
|