linV
linV
get/sets the linear velocity to be applied to the game object
Type: list [ vx, vy, vz]
vx: linear
velocity applied to the x axis
Type: float
vy: linear velocity applied to the y axis
Type: float
vz: linear velocity applied to the z axis
Type: float
Sample Code
################# Set linV
# get the controller
controller = GameLogic.getCurrentController()
# get the object actuator attached to the controller
named act
actMotion = controller.actuators["act"]
# set linear velocity on Y axis
actMotion.linV = [ 0.0, 10.0, 0.0]
# use it
controller.activate(actMotion)
################# Set linV
# get the controller
controller = GameLogic.getCurrentController()
# get the object actuator attached to the controller
named act
actMotion = controller.actuators["act"]
# set linear velocity on Y axis
actMotion.linV = [ 0.0, 10.0, 0.0]
# use it
controller.activate(actMotion)
|