propName
propName
Note:
Distance Constraint only.
gets/sets the name of the property/material the distance constraint
looks for.
Type: string
Sample Code
#################### Get propName
# get the controller
controller = GameLogic.getCurrentController()
# get the constraint actuator attached to the
controller named act
act = controller.actuators["act"]
# get the name of the property
prop = act.propName
#################### Set propName
# get the controller
controller = GameLogic.getCurrentController()
# get the constraint actuator attached to the
controller named act
act = controller.actuators["act"]
# set the name of the property
act.propName = "ground"
|