occlusion
occlusion
gets/sets occlusion culling
Type: Bool
1 or True = object is an occluder
0 or False = object isn't an occluder
Sample Code
################ Get occlusion
# get the controller
controller = GameLogic.getCurrentController()
# get the game object that the controller is attached
to.
obj = controller.owner
# get object's occlusion culling status
occlu = obj.occlusion
################ Set occlusion
# get the controller
controller = GameLogic.getCurrentController()
# get the game object that the controller is attached
to.
obj = controller.owner
# set object's occlusion culling status
obj.occlusion = False
|