ghost
ghost
Note:
Works only when the child
shape isn't part of the parent's compound shape.
gets/sets whether or not the object should be made a ghost when parented
Type: bool
Sample
Code
################## Get ghost
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
act = controller.actuators["act"]
# is child a ghost?
ghostChild = act.ghost
################## Set ghost
# get the controller
controller = GameLogic.getCurrentController()
# get the actuator attached to the controller named act
act = controller.actuators["act"]
# make ghost
act.ghost = True
|