localScale
localScale
gets/sets the object's local scale
Type: float list [fx, fy, fz]
Sample Code
################# Get localScaling
# get the controller
controller = GameLogic.getCurrentController()
# get the game object that the controller is attached
to.
obj = controller.owner
# get owner local scale
locScale = obj.localScale
################# Set localScale
# get the controller
controller = GameLogic.getCurrentController()
# get the game object that the controller is attached
to.
obj = controller.owner
# set owner local scale
obj.localScale = [ 1.5 , 2.0, 2.0]
|