
scaling
- Get/set the game object scale on the local axis
- float list [ scale_x, scale_y, scale_z ]
- scale_x = game object x axis
- scale_y = game object y axis
- scale_z = game object z axis
- scale_x: -10,000.00 to 10,000.00
- scale_y: -10,000.00 to 10,000.00
- scale_z: -10,000.00 to 10,000.00
Note:
- Scales the game object on the game object axis

Sample Code
################## get the game object's scale on the local x, y and z axis
# import bge
import bge
# get controller
cont = bge.logic.getCurrentController()
# get object that controller is attached to
obj = cont.owner
# get scale
scale = obj.scaling
Sample Code
################## set the game object's scale on the local x, y and z axis
# import bge
import bge
# get controller
cont = bge.logic.getCurrentController()
# get object that controller is attached to
obj = cont.owner
# set scale
obj.scaling = [ 2.0, 3.5, 1.5 ]