21 INLINE BulletVehicle::
32 btRaycastVehicle *BulletVehicle::
60 return _vehicle->getNumWheels();
68 void BulletVehicleTuning::
69 set_suspension_stiffness(PN_stdfloat value) {
71 _.m_suspensionStiffness = (btScalar)value;
79 void BulletVehicleTuning::
80 set_suspension_compression(PN_stdfloat value) {
82 _.m_suspensionCompression = (btScalar)value;
90 void BulletVehicleTuning::
91 set_suspension_damping(PN_stdfloat value) {
93 _.m_suspensionDamping = (btScalar)value;
101 void BulletVehicleTuning::
102 set_max_suspension_travel_cm(PN_stdfloat value) {
104 _.m_maxSuspensionTravelCm = (btScalar)value;
112 void BulletVehicleTuning::
113 set_friction_slip(PN_stdfloat value) {
115 _.m_frictionSlip = (btScalar)value;
123 void BulletVehicleTuning::
124 set_max_suspension_force(PN_stdfloat value) {
126 _.m_maxSuspensionForce = (btScalar)value;
134 PN_stdfloat BulletVehicleTuning::
135 get_suspension_stiffness()
const {
137 return (PN_stdfloat)_.m_suspensionStiffness;
145 PN_stdfloat BulletVehicleTuning::
146 get_suspension_compression()
const {
148 return (PN_stdfloat)_.m_suspensionCompression;
156 PN_stdfloat BulletVehicleTuning::
157 get_suspension_damping()
const {
159 return (PN_stdfloat)_.m_suspensionDamping;
167 PN_stdfloat BulletVehicleTuning::
168 get_max_suspension_travel_cm()
const {
170 return (PN_stdfloat)_.m_maxSuspensionTravelCm;
178 PN_stdfloat BulletVehicleTuning::
179 get_friction_slip()
const {
181 return (PN_stdfloat)_.m_frictionSlip;
189 PN_stdfloat BulletVehicleTuning::
190 get_max_suspension_force()
const {
192 return (PN_stdfloat)_.m_maxSuspensionForce;
BulletVehicleTuning & get_tuning()
Returns a reference to the BulletVehicleTuning object of this vehicle which offers various vehicle-gl...
int get_num_wheels() const
Returns the number of wheels this vehicle has.