Module KX_VehicleWrapper :: Class KX_VehicleWrapper

Class KX_VehicleWrapper

KX_VehicleWrapper

All placeholders have a __ prefix

Instance Methods
 
addWheel(wheel, attachPos, attachDir, axleDir, suspensionRestLength, wheelRadius, hasSteering)
TODO - Description
Method Details

addWheel(wheel, attachPos, attachDir, axleDir, suspensionRestLength, wheelRadius, hasSteering)

 

TODO - Description

Parameters:
  • wheel (KX_GameObject or a KX_GameObject name) - The object to use as a wheel.
  • attachPos (vector of 3 floats) - The position that this wheel will attach to.
  • attachDir (vector of 3 floats) - The direction this wheel points.
  • axleDir (vector of 3 floats) - The direction of this wheels axle.
  • suspensionRestLength (float) - TODO - Description
  • wheelRadius (float) - The size of the wheel.