14#ifndef PHYSXWHEELSHAPEDESC_H
15#define PHYSXWHEELSHAPEDESC_H
27class EXPCL_PANDAPHYSX PhysxWheelShapeDesc :
public PhysxShapeDesc {
30 INLINE PhysxWheelShapeDesc();
31 INLINE ~PhysxWheelShapeDesc();
46 float get_suspension_travel()
const;
47 float get_inverse_wheel_mass()
const;
48 float get_motor_torque()
const;
49 float get_brake_torque()
const;
50 float get_steer_angle()
const;
55 NxShapeDesc *ptr()
const {
return (NxShapeDesc *)&_desc; };
56 NxWheelShapeDesc _desc;
Describes a joint spring.
void set_inverse_wheel_mass(float inverseWheelMass)
Set the inverse mass of the wheel.
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_suspension_travel(float suspensionTravel)
Set the maximum extension distance of suspension along shape's -Y axis.
float get_radius() const
Radius of shape.
void set_suspension(const PhysxSpringDesc &spring)
Set the data intended for car wheel suspension effects.
bool get_wheel_flag(PhysxWheelShapeFlag flag) const
Returns the specified wheel shape flag.
void set_radius(float radius)
Radius of shape.
void set_wheel_flag(PhysxWheelShapeFlag flag, bool value)
Turn the specified wheel shape flag on or off.
void set_steer_angle(float steerAngle)
Set the steering angle, around shape Y axis.
bool is_valid() const
Returns true if the descriptor is valid.
void set_to_default()
(re)sets the structure to the default.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.