15 #ifndef PHYSXWHEELSHAPE_H 16 #define PHYSXWHEELSHAPE_H 18 #include "pandabase.h" 20 #include "physxShape.h" 21 #include "physx_includes.h" 73 INLINE ~PhysxWheelShape();
77 void set_radius(
float radius);
78 void set_suspension_travel(
float travel);
79 void set_inverse_wheel_mass(
float invMass);
80 void set_motor_torque(
float torque);
81 void set_brake_torque(
float torque);
82 void set_steer_angle(
float angle);
83 void set_steer_angle_rad(
float angle);
84 void set_axle_speed(
float speed);
85 void set_wheel_flag(PhysxWheelShapeFlag flag,
bool value);
88 float get_radius()
const;
89 float get_suspension_travel()
const;
90 float get_inverse_wheel_mass()
const;
91 float get_motor_torque()
const;
92 float get_brake_torque()
const;
93 float get_steer_angle()
const;
94 float get_steer_angle_rad()
const;
95 float get_axle_speed()
const;
96 bool get_wheel_flag(PhysxWheelShapeFlag flag)
const;
100 INLINE NxShape *ptr()
const {
return (NxShape *)_ptr; };
102 void link(NxShape *shapePtr);
113 static void init_type() {
114 PhysxShape::init_type();
115 register_type(_type_handle,
"PhysxWheelShape",
116 PhysxShape::get_class_type());
119 return get_class_type();
123 return get_class_type();
130 #include "physxWheelShape.I" 132 #endif // PHYSXWHEELSHAPE_H Abstract base class for shapes.
Describes a joint spring.
Descriptor class for PhysxWheelShape.
A special shape used for simulating a car wheel.
TypeHandle is the identifier used to differentiate C++ class types.