Panda3D
Public Member Functions | List of all members
BulletWheel Class Reference

One wheel of a BulletVehicle. Instances should not be created directly but using the factory method BulletVehicle::create_wheel(). More...

Public Member Functions

float getBrake ()
 Returns the amount of braking force currently applied. More...
 
LPoint3 getChassisConnectionPointCs ()
 Returns the point where the wheel is connected to the chassis. More...
 
float getClippedInvConnectionPointCs ()
 
float getDeltaRotation ()
 
float getEngineForce ()
 Returns the amount of accelleration force currently applied. More...
 
float getFrictionSlip ()
 Returns how slippery the tyres are. More...
 
float getMaxSuspensionForce ()
 Returns the maximum force (weight) the suspension can handle. More...
 
float getMaxSuspensionTravelCm ()
 
PandaNode getNode ()
 Returns the PandaNode which representates the visual appearance of this wheel, if such a representation has been set previously. More...
 
BulletWheelRaycastInfo getRaycastInfo ()
 
float getRollInfluence ()
 Returns the factor by which roll forces are scaled. See set_roll_influence. More...
 
float getRotation ()
 
float getSkidInfo ()
 
float getSteering ()
 Returns the steering angle in degrees. More...
 
float getSuspensionRelativeVelocity ()
 
float getSuspensionRestLength ()
 Returns the length of the suspension when the vehicle is standing still. More...
 
float getSuspensionStiffness ()
 Returns the stiffness of the suspension. More...
 
LVector3 getWheelAxleCs ()
 Returns the normal vector of the wheel axle. More...
 
LVector3 getWheelDirectionCs ()
 Returns the wheel's forward vector relative to the chassis. More...
 
float getWheelRadius ()
 Returns the wheel radius. More...
 
float getWheelsDampingCompression ()
 Returns the damping applied to the compressing suspension. More...
 
float getWheelsDampingRelaxation ()
 Returns the damping applied to the relaxing suspension. More...
 
float getWheelsSuspensionForce ()
 
LMatrix4 getWorldTransform ()
 
bool isFrontWheel ()
 Determines if a wheel is steerable. More...
 
 setBrake (float value)
 
 setChassisConnectionPointCs (const LPoint3 pos)
 Sets the point where the wheel is connected to the chassis. More...
 
 setClippedInvConnectionPointCs (float value)
 
 setDeltaRotation (float value)
 
 setEngineForce (float value)
 Defines how much force should be used to rotate the wheel. More...
 
 setFrictionSlip (float value)
 Sets the slipperyness of the tyre. More...
 
 setFrontWheel (bool value)
 Sets if the wheel is steerable. More...
 
 setMaxSuspensionForce (float value)
 Sets the maximum suspension force the wheel can handle. More...
 
 setMaxSuspensionTravelCm (float value)
 Sets the maximum distance the suspension can travel out of the resting position in centimeters. More...
 
 setNode (PandaNode node)
 Sets the PandaNode which representates the visual appearance of this wheel. More...
 
 setRollInfluence (float value)
 Defines a scaling factor for roll forces that affect the chassis. 0.0 means no roll - the chassis won't ever flip over - while 1.0 means original physical behaviour. Basically, this allows moving the center of mass up and down. More...
 
 setRotation (float value)
 
 setSkidInfo (float value)
 
 setSteering (float value)
 Sets the steering angle. More...
 
 setSuspensionRelativeVelocity (float value)
 
 setSuspensionStiffness (float value)
 Sets how stiff the suspension shall be. More...
 
 setWheelAxleCs (const LVector3 axle)
 Determines the wheel axle normal vector. More...
 
 setWheelDirectionCs (const LVector3 dir)
 Sets the wheel's forward vector. (Most likely orthogonal to the axle vector.) More...
 
 setWheelRadius (float value)
 Sets the wheel radius. More...
 
 setWheelsDampingCompression (float value)
 Sets the damping forces applied when the suspension gets compressed. More...
 
 setWheelsDampingRelaxation (float value)
 Sets the damping forces applied when the suspension relaxes. More...
 
 setWheelsSuspensionForce (float value)
 
 setWorldTransform (const LMatrix4 mat)
 

Detailed Description

One wheel of a BulletVehicle. Instances should not be created directly but using the factory method BulletVehicle::create_wheel().

Member Function Documentation

◆ getBrake()

float getBrake ( )

Returns the amount of braking force currently applied.

◆ getChassisConnectionPointCs()

LPoint3 getChassisConnectionPointCs ( )

Returns the point where the wheel is connected to the chassis.

◆ getClippedInvConnectionPointCs()

float getClippedInvConnectionPointCs ( )

◆ getDeltaRotation()

float getDeltaRotation ( )

◆ getEngineForce()

float getEngineForce ( )

Returns the amount of accelleration force currently applied.

◆ getFrictionSlip()

float getFrictionSlip ( )

Returns how slippery the tyres are.

◆ getMaxSuspensionForce()

float getMaxSuspensionForce ( )

Returns the maximum force (weight) the suspension can handle.

◆ getMaxSuspensionTravelCm()

float getMaxSuspensionTravelCm ( )

◆ getNode()

PandaNode getNode ( )

Returns the PandaNode which representates the visual appearance of this wheel, if such a representation has been set previously.

◆ getRaycastInfo()

BulletWheelRaycastInfo getRaycastInfo ( )

◆ getRollInfluence()

float getRollInfluence ( )

Returns the factor by which roll forces are scaled. See set_roll_influence.

◆ getRotation()

float getRotation ( )

◆ getSkidInfo()

float getSkidInfo ( )

◆ getSteering()

float getSteering ( )

Returns the steering angle in degrees.

◆ getSuspensionRelativeVelocity()

float getSuspensionRelativeVelocity ( )

◆ getSuspensionRestLength()

float getSuspensionRestLength ( )

Returns the length of the suspension when the vehicle is standing still.

◆ getSuspensionStiffness()

float getSuspensionStiffness ( )

Returns the stiffness of the suspension.

◆ getWheelAxleCs()

LVector3 getWheelAxleCs ( )

Returns the normal vector of the wheel axle.

◆ getWheelDirectionCs()

LVector3 getWheelDirectionCs ( )

Returns the wheel's forward vector relative to the chassis.

◆ getWheelRadius()

float getWheelRadius ( )

Returns the wheel radius.

◆ getWheelsDampingCompression()

float getWheelsDampingCompression ( )

Returns the damping applied to the compressing suspension.

◆ getWheelsDampingRelaxation()

float getWheelsDampingRelaxation ( )

Returns the damping applied to the relaxing suspension.

◆ getWheelsSuspensionForce()

float getWheelsSuspensionForce ( )

◆ getWorldTransform()

LMatrix4 getWorldTransform ( )

◆ isFrontWheel()

bool isFrontWheel ( )

Determines if a wheel is steerable.

◆ setBrake()

setBrake ( float  value)

◆ setChassisConnectionPointCs()

setChassisConnectionPointCs ( const LPoint3  pos)

Sets the point where the wheel is connected to the chassis.

◆ setClippedInvConnectionPointCs()

setClippedInvConnectionPointCs ( float  value)

◆ setDeltaRotation()

setDeltaRotation ( float  value)

◆ setEngineForce()

setEngineForce ( float  value)

Defines how much force should be used to rotate the wheel.

◆ setFrictionSlip()

setFrictionSlip ( float  value)

Sets the slipperyness of the tyre.

◆ setFrontWheel()

setFrontWheel ( bool  value)

Sets if the wheel is steerable.

◆ setMaxSuspensionForce()

setMaxSuspensionForce ( float  value)

Sets the maximum suspension force the wheel can handle.

◆ setMaxSuspensionTravelCm()

setMaxSuspensionTravelCm ( float  value)

Sets the maximum distance the suspension can travel out of the resting position in centimeters.

◆ setNode()

setNode ( PandaNode  node)

Sets the PandaNode which representates the visual appearance of this wheel.

◆ setRollInfluence()

setRollInfluence ( float  value)

Defines a scaling factor for roll forces that affect the chassis. 0.0 means no roll - the chassis won't ever flip over - while 1.0 means original physical behaviour. Basically, this allows moving the center of mass up and down.

◆ setRotation()

setRotation ( float  value)

◆ setSkidInfo()

setSkidInfo ( float  value)

◆ setSteering()

setSteering ( float  value)

Sets the steering angle.

◆ setSuspensionRelativeVelocity()

setSuspensionRelativeVelocity ( float  value)

◆ setSuspensionStiffness()

setSuspensionStiffness ( float  value)

Sets how stiff the suspension shall be.

◆ setWheelAxleCs()

setWheelAxleCs ( const LVector3  axle)

Determines the wheel axle normal vector.

◆ setWheelDirectionCs()

setWheelDirectionCs ( const LVector3  dir)

Sets the wheel's forward vector. (Most likely orthogonal to the axle vector.)

◆ setWheelRadius()

setWheelRadius ( float  value)

Sets the wheel radius.

◆ setWheelsDampingCompression()

setWheelsDampingCompression ( float  value)

Sets the damping forces applied when the suspension gets compressed.

◆ setWheelsDampingRelaxation()

setWheelsDampingRelaxation ( float  value)

Sets the damping forces applied when the suspension relaxes.

◆ setWheelsSuspensionForce()

setWheelsSuspensionForce ( float  value)

◆ setWorldTransform()

setWorldTransform ( const LMatrix4  mat)