Module GameTypes :: Class KX_SCA_DynamicActuator
[hide private]
[frames] | no frames]

Class KX_SCA_DynamicActuator

source code

PyObjectPlus --+            
               |            
          CValue --+        
                   |        
     SCA_ILogicBrick --+    
                       |    
           SCA_IActuator --+
                           |
                          KX_SCA_DynamicActuator

Dynamic Actuator.

Instance Methods [hide private]
    Deprecated
 
setOperation(operation)
Set the type of operation when the actuator is activated:
source code
 
getOperation()
return the type of operation
source code
    Inherited from SCA_ILogicBrick
integer
getExecutePriority()
Gets the execution priority of this logic brick.
source code
KX_GameObject
getOwner()
Gets the game object associated with this logic brick.
source code
 
setExecutePriority(priority)
Sets the priority of this logic brick.
source code
    Inherited from CValue
string
getName()
Returns the name of the CValue.
source code
    Inherited from PyObjectPlus
bool
isA(game_type)
Check if this is a type or a subtype game_type.
source code
Instance Variables [hide private]
float mass
the mass value for the KX_DYN_SET_MASS operation
integer mode
the type of operation of the actuator, 0-4 KX_DYN_RESTORE_DYNAMICS, KX_DYN_DISABLE_DYNAMICS, KX_DYN_ENABLE_RIGID_BODY, KX_DYN_DISABLE_RIGID_BODY, KX_DYN_SET_MASS
    Inherited from SCA_ILogicBrick
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).
    Inherited from PyObjectPlus
bool invalid
Test if the object has been freed by the game engine and is no longer valid.
Method Details [hide private]

setOperation(operation)

source code 
Set the type of operation when the actuator is activated:
  • 0 = restore dynamics
  • 1 = disable dynamics
  • 2 = enable rigid body
  • 3 = disable rigid body
  • 4 = set mass

Deprecated: Use the mode attribute instead.

getOperation()

source code 
return the type of operation

Deprecated: Use the mode attribute instead.