00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PHYSXWHEELSHAPEDESC_H
00016 #define PHYSXWHEELSHAPEDESC_H
00017
00018 #include "pandabase.h"
00019
00020 #include "physxShapeDesc.h"
00021 #include "physx_includes.h"
00022
00023 class PhysxSpringDesc;
00024
00025
00026
00027
00028
00029 class EXPCL_PANDAPHYSX PhysxWheelShapeDesc : public PhysxShapeDesc {
00030
00031 PUBLISHED:
00032 INLINE PhysxWheelShapeDesc();
00033 INLINE ~PhysxWheelShapeDesc();
00034
00035 void set_to_default();
00036 INLINE bool is_valid() const;
00037
00038 void set_radius(float radius);
00039 void set_suspension_travel(float suspensionTravel);
00040 void set_inverse_wheel_mass(float inverseWheelMass);
00041 void set_motor_torque(float motorTorque);
00042 void set_brake_torque(float brakeTorque);
00043 void set_steer_angle(float steerAngle);
00044 void set_wheel_flag(PhysxWheelShapeFlag flag, bool value);
00045 void set_suspension(const PhysxSpringDesc &spring);
00046
00047 float get_radius() const;
00048 float get_suspension_travel() const;
00049 float get_inverse_wheel_mass() const;
00050 float get_motor_torque() const;
00051 float get_brake_torque() const;
00052 float get_steer_angle() const;
00053 bool get_wheel_flag(PhysxWheelShapeFlag flag) const;
00054 PhysxSpringDesc get_suspension() const;
00055
00056 public:
00057 NxShapeDesc *ptr() const { return (NxShapeDesc *)&_desc; };
00058 NxWheelShapeDesc _desc;
00059 };
00060
00061 #include "physxWheelShapeDesc.I"
00062
00063 #endif // PHYSXWHEELSHAPEDESC_H