Panda3D
Public Member Functions | Public Attributes

PhysxWheelShapeDesc Class Reference

Descriptor class for PhysxWheelShape. More...

#include "physxWheelShapeDesc.h"

Inheritance diagram for PhysxWheelShapeDesc:
PhysxShapeDesc PhysxEnums ReferenceCount MemoryBase

List of all members.

Public Member Functions

float get_brake_torque () const
float get_inverse_wheel_mass () const
float get_motor_torque () const
float get_radius () const
 Radius of shape.
float get_steer_angle () const
PhysxSpringDesc get_suspension () const
float get_suspension_travel () const
bool get_wheel_flag (PhysxWheelShapeFlag flag) const
 Returns the specified wheel shape flag.
bool is_valid () const
 Returns true if the descriptor is valid.
NxShapeDesc * ptr () const
void set_brake_torque (float brakeTorque)
 Set the amount of torque applied for braking.
void set_inverse_wheel_mass (float inverseWheelMass)
 Set the inverse mass of the wheel.
void set_motor_torque (float motorTorque)
 Set the sum engine torque on the wheel axle.
void set_radius (float radius)
 Radius of shape.
void set_steer_angle (float steerAngle)
 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_suspension_travel (float suspensionTravel)
 Set the maximum extension distance of suspension along shape's -Y axis.
void set_to_default ()
 (re)sets the structure to the default.
void set_wheel_flag (PhysxWheelShapeFlag flag, bool value)
 Turn the specified wheel shape flag on or off.

Public Attributes

NxWheelShapeDesc _desc

Detailed Description

Descriptor class for PhysxWheelShape.

Definition at line 29 of file physxWheelShapeDesc.h.


Member Function Documentation

float PhysxWheelShapeDesc::get_radius ( ) const

Radius of shape.

Definition at line 48 of file physxWheelShapeDesc.cxx.

bool PhysxWheelShapeDesc::get_wheel_flag ( PhysxWheelShapeFlag  flag) const

Returns the specified wheel shape flag.

Definition at line 187 of file physxWheelShapeDesc.cxx.

bool PhysxWheelShapeDesc::is_valid ( ) const [inline, virtual]

Returns true if the descriptor is valid.

Implements PhysxShapeDesc.

Definition at line 44 of file physxWheelShapeDesc.I.

void PhysxWheelShapeDesc::set_brake_torque ( float  brakeTorque)

Set the amount of torque applied for braking.

Definition at line 126 of file physxWheelShapeDesc.cxx.

void PhysxWheelShapeDesc::set_inverse_wheel_mass ( float  inverseWheelMass)

Set the inverse mass of the wheel.

Definition at line 82 of file physxWheelShapeDesc.cxx.

void PhysxWheelShapeDesc::set_motor_torque ( float  motorTorque)

Set the sum engine torque on the wheel axle.

Definition at line 104 of file physxWheelShapeDesc.cxx.

void PhysxWheelShapeDesc::set_radius ( float  radius)

Radius of shape.

Must be positive.

Definition at line 37 of file physxWheelShapeDesc.cxx.

void PhysxWheelShapeDesc::set_steer_angle ( float  steerAngle)

Set the steering angle, around shape Y axis.

The steering angle is measured in degrees.

Definition at line 149 of file physxWheelShapeDesc.cxx.

void PhysxWheelShapeDesc::set_suspension ( const PhysxSpringDesc spring)

Set the data intended for car wheel suspension effects.

Definition at line 199 of file physxWheelShapeDesc.cxx.

void PhysxWheelShapeDesc::set_suspension_travel ( float  suspensionTravel)

Set the maximum extension distance of suspension along shape's -Y axis.

Definition at line 60 of file physxWheelShapeDesc.cxx.

void PhysxWheelShapeDesc::set_to_default ( ) [virtual]

(re)sets the structure to the default.

Implements PhysxShapeDesc.

Definition at line 23 of file physxWheelShapeDesc.cxx.

References PhysxManager::mat4_to_nxMat34(), PhysxShapeDesc::set_name(), and LMatrix4f::y_to_z_up_mat().

void PhysxWheelShapeDesc::set_wheel_flag ( PhysxWheelShapeFlag  flag,
bool  value 
)

Turn the specified wheel shape flag on or off.

Definition at line 171 of file physxWheelShapeDesc.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations