14#ifndef PHYSXWHEELSHAPE_H
15#define PHYSXWHEELSHAPE_H
56class EXPCL_PANDAPHYSX PhysxWheelShape :
public PhysxShape {
58 INLINE PhysxWheelShape();
59 INLINE ~PhysxWheelShape();
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();
Describes a joint spring.
Descriptor class for PhysxWheelShape.
float get_axle_speed() const
Retrieves the current axle rotation speed.
float get_radius() const
Returns the radius of the sphere.
float get_suspension_travel() const
Returns the suspension travel.
void set_brake_torque(float torque)
Must be nonnegative.
void set_motor_torque(float torque)
Set the sum engine torque on the wheel axle.
float get_motor_torque() const
Retrieves the sum engine torque on the wheel axle.
void set_inverse_wheel_mass(float invMass)
Set the inverse mass of the wheel.
void save_to_desc(PhysxWheelShapeDesc &shapeDesc) const
Saves the state of the shape object to a descriptor.
float get_steer_angle() const
Retrieves the steering angle, around shape Y axis.
float get_brake_torque() const
Must be nonnegative.
bool get_wheel_flag(PhysxWheelShapeFlag flag) const
Returns the value of the specified wheel shape flag.
float get_steer_angle_rad() const
Retrieves the steering angle, around shape Y axis.
void set_steer_angle_rad(float angle)
Set the steering angle, around shape Y axis.
void set_wheel_flag(PhysxWheelShapeFlag flag, bool value)
Turns the specified wheel shape flag on or off.
float get_inverse_wheel_mass() const
Returns the inverse mass of the wheel.
void set_axle_speed(float speed)
Set the current axle rotation speed.
void set_steer_angle(float angle)
Set the steering angle, around shape Y axis.
void set_suspension(const PhysxSpringDesc &spring)
Set the data intended for car wheel suspension effects.
void set_radius(float radius)
Sets the sphere radius.
void set_suspension_travel(float travel)
Set the maximum extension distance of suspension along shape's -Y axis.
TypeHandle is the identifier used to differentiate C++ class types.
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.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...