34 _desc.radius = radius;
52 _desc.suspensionTravel = suspensionTravel;
58 float PhysxWheelShapeDesc::
59 get_suspension_travel()
const {
61 return _desc.suspensionTravel;
70 _desc.inverseWheelMass = inverseWheelMass;
76 float PhysxWheelShapeDesc::
77 get_inverse_wheel_mass()
const {
79 return _desc.inverseWheelMass;
88 _desc.motorTorque = motorTorque;
94 float PhysxWheelShapeDesc::
95 get_motor_torque()
const {
97 return _desc.motorTorque;
106 _desc.brakeTorque = brakeTorque;
112 float PhysxWheelShapeDesc::
113 get_brake_torque()
const {
115 return _desc.brakeTorque;
125 _desc.steerAngle = NxMath::degToRad(steerAngle);
131 float PhysxWheelShapeDesc::
132 get_steer_angle()
const {
134 return _desc.steerAngle;
144 _desc.wheelFlags |= flag;
147 _desc.wheelFlags &= ~(flag);
157 return (_desc.wheelFlags & flag) ? true :
false;
166 _desc.suspension = spring._desc;
173 get_suspension()
const {
176 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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
void set_motor_torque(float motorTorque)
Set the sum engine torque on the wheel axle.
void set_radius(float radius)
Radius of shape.
float get_radius() const
Radius of shape.
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.
bool get_wheel_flag(PhysxWheelShapeFlag flag) const
Returns the specified wheel shape flag.
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.