#include <palVehicle.h>
Public Member Functions | |
virtual void | Init (Float x, Float y, Float z, Float radius, Float width, Float suspension_rest_length, Float suspension_Ks, Float suspension_Kd, bool powered, bool steering, bool brakes, Float suspension_Travel, Float friction_Slip) |
virtual void palWheel::Init | ( | Float | x, | |
Float | y, | |||
Float | z, | |||
Float | radius, | |||
Float | width, | |||
Float | suspension_rest_length, | |||
Float | suspension_Ks, | |||
Float | suspension_Kd, | |||
bool | powered, | |||
bool | steering, | |||
bool | brakes, | |||
Float | suspension_Travel, | |||
Float | friction_Slip | |||
) | [inline, virtual] |
Initializes a wheel.
x | The x-coordinate of the wheel (relative to car center) | |
y | The y-coordinate of the wheel (relative to car center) | |
z | The z-coordinate of the wheel (relative to car center) | |
radius | The radius of the wheel | |
width | The width of the wheel | |
suspension_rest_length | The resting length of the suspension spring | |
suspension_Ks | The spring constant for the suspension | |
suspension_Kd | The dampening constant for the suspension | |
suspension_Travel | The max distance the suspension may travel | |
powered | Flag indicating whether this wheel is powered (driven) by the motor | |
steering | Flag indicating whether this wheel is affected by steering | |
breaks | Flag indicating whether this wheel is affected by breaking |