15 #include "physxWheelShapeDesc.h"
39 _desc.radius = radius;
62 _desc.suspensionTravel = suspensionTravel;
70 float PhysxWheelShapeDesc::
71 get_suspension_travel()
const {
73 return _desc.suspensionTravel;
84 _desc.inverseWheelMass = inverseWheelMass;
92 float PhysxWheelShapeDesc::
93 get_inverse_wheel_mass()
const {
95 return _desc.inverseWheelMass;
106 _desc.motorTorque = motorTorque;
114 float PhysxWheelShapeDesc::
115 get_motor_torque()
const {
117 return _desc.motorTorque;
128 _desc.brakeTorque = brakeTorque;
136 float PhysxWheelShapeDesc::
137 get_brake_torque()
const {
139 return _desc.brakeTorque;
151 _desc.steerAngle = NxMath::degToRad(steerAngle);
159 float PhysxWheelShapeDesc::
160 get_steer_angle()
const {
162 return _desc.steerAngle;
174 _desc.wheelFlags |= flag;
177 _desc.wheelFlags &= ~(flag);
189 return (_desc.wheelFlags & flag) ?
true :
false;
201 _desc.suspension = spring._desc;
210 get_suspension()
const {
213 value._desc = _desc.suspension;
void set_inverse_wheel_mass(float inverseWheelMass)
Set the inverse mass of the wheel.
void set_suspension_travel(float suspensionTravel)
Set the maximum extension distance of suspension along shape's -Y axis.
float get_radius() const
Radius of shape.
Describes a joint spring.
void set_to_default()
(re)sets the structure to the default.
static NxMat34 mat4_to_nxMat34(const LMatrix4f &m)
Converts from LMatrix4f to NxMat34.
void set_brake_torque(float brakeTorque)
Set the amount of torque applied for braking.
static const LMatrix4f & y_to_z_up_mat()
Returns a matrix that transforms from the Y-up coordinate system to the Z-up coordinate system...
void set_motor_torque(float motorTorque)
Set the sum engine torque on the wheel axle.
void set_radius(float radius)
Radius of shape.
bool get_wheel_flag(PhysxWheelShapeFlag flag) const
Returns the specified wheel shape flag.
void set_steer_angle(float steerAngle)
Set the steering angle, around shape Y axis.
void set_name(const char *name)
Sets a possible debug name.
void set_suspension(const PhysxSpringDesc &spring)
Set the data intended for car wheel suspension effects.
void set_wheel_flag(PhysxWheelShapeFlag flag, bool value)
Turn the specified wheel shape flag on or off.