14 #ifndef PHYSXWHEELSHAPE_H 15 #define PHYSXWHEELSHAPE_H 63 void set_radius(
float radius);
64 void set_suspension_travel(
float travel);
65 void set_inverse_wheel_mass(
float invMass);
66 void set_motor_torque(
float torque);
67 void set_brake_torque(
float torque);
68 void set_steer_angle(
float angle);
69 void set_steer_angle_rad(
float angle);
70 void set_axle_speed(
float speed);
71 void set_wheel_flag(PhysxWheelShapeFlag flag,
bool value);
74 float get_radius()
const;
75 float get_suspension_travel()
const;
76 float get_inverse_wheel_mass()
const;
77 float get_motor_torque()
const;
78 float get_brake_torque()
const;
79 float get_steer_angle()
const;
80 float get_steer_angle_rad()
const;
81 float get_axle_speed()
const;
82 bool get_wheel_flag(PhysxWheelShapeFlag flag)
const;
85 INLINE NxShape *ptr()
const {
return (NxShape *)_ptr; };
87 void link(NxShape *shapePtr);
97 static void init_type() {
98 PhysxShape::init_type();
100 PhysxShape::get_class_type());
103 return get_class_type();
107 return get_class_type();
116 #endif // PHYSXWHEELSHAPE_H PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Abstract base class for shapes.
Describes a joint spring.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Descriptor class for PhysxWheelShape.
A special shape used for simulating a car wheel.
TypeHandle is the identifier used to differentiate C++ class types.