mass
mass
gets/sets
the mass the Dynamics Actuator is set to.
Type: float
Sample
Code
################ Get mass
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
act = controller.actuators["act"]
# get mass setting
dynamicsMass = act.mass
################ Set mass
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
act = controller.actuators["act"]
# set mass setting
act.mass = 20.0
|