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

One wheel of a BulletVehicle. More...

Public Member Functions

 __init__ (const BulletWheel)
 
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. 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. 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. 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)
 

Public Attributes

float brake
 Returns the amount of braking force currently applied. More...
 
LPoint3 chassis_connection_point_cs
 Returns the point where the wheel is connected to the chassis. More...
 
float clipped_inv_connection_point_cs
 
float delta_rotation
 
float engine_force
 Returns the amount of accelleration force currently applied. More...
 
float friction_slip
 Returns how slippery the tyres are. More...
 
bool front_wheel
 Determines if a wheel is steerable. More...
 
float max_suspension_force
 Returns the maximum force (weight) the suspension can handle. More...
 
float max_suspension_travel_cm
 
PandaNode node
 Returns the PandaNode which representates the visual appearance of this wheel, if such a representation has been set previously. More...
 
BulletWheelRaycastInfo raycast_info
 
float roll_influence
 Returns the factor by which roll forces are scaled. More...
 
float rotation
 
float skid_info
 
float steering
 Returns the steering angle in degrees. More...
 
float suspension_relative_velocity
 
float suspension_rest_length
 Returns the length of the suspension when the vehicle is standing still. More...
 
float suspension_stiffness
 Returns the stiffness of the suspension. More...
 
LVector3 wheel_axle_cs
 Returns the normal vector of the wheel axle. More...
 
LVector3 wheel_direction_cs
 Returns the wheel's forward vector relative to the chassis. More...
 
float wheel_radius
 Returns the wheel radius. More...
 
float wheels_damping_compression
 Returns the damping applied to the compressing suspension. More...
 
float wheels_damping_relaxation
 Returns the damping applied to the relaxing suspension. More...
 
float wheels_suspension_force
 
LMatrix4 world_transform
 

Detailed Description

One wheel of a BulletVehicle.

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

Member Function Documentation

◆ __init__()

__init__ ( const  BulletWheel)

◆ 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)

Member Data Documentation

◆ brake

float brake

Returns the amount of braking force currently applied.

◆ chassis_connection_point_cs

LPoint3 chassis_connection_point_cs

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

◆ clipped_inv_connection_point_cs

float clipped_inv_connection_point_cs

◆ delta_rotation

float delta_rotation

◆ engine_force

float engine_force

Returns the amount of accelleration force currently applied.

◆ friction_slip

float friction_slip

Returns how slippery the tyres are.

◆ front_wheel

bool front_wheel

Determines if a wheel is steerable.

◆ max_suspension_force

float max_suspension_force

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

◆ max_suspension_travel_cm

float max_suspension_travel_cm

◆ node

PandaNode node

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

◆ raycast_info

BulletWheelRaycastInfo raycast_info

◆ roll_influence

float roll_influence

Returns the factor by which roll forces are scaled.

See set_roll_influence.

◆ rotation

float rotation

◆ skid_info

float skid_info

◆ steering

float steering

Returns the steering angle in degrees.

◆ suspension_relative_velocity

float suspension_relative_velocity

◆ suspension_rest_length

float suspension_rest_length

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

◆ suspension_stiffness

float suspension_stiffness

Returns the stiffness of the suspension.

◆ wheel_axle_cs

LVector3 wheel_axle_cs

Returns the normal vector of the wheel axle.

◆ wheel_direction_cs

LVector3 wheel_direction_cs

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

◆ wheel_radius

float wheel_radius

Returns the wheel radius.

◆ wheels_damping_compression

float wheels_damping_compression

Returns the damping applied to the compressing suspension.

◆ wheels_damping_relaxation

float wheels_damping_relaxation

Returns the damping applied to the relaxing suspension.

◆ wheels_suspension_force

float wheels_suspension_force

◆ world_transform

LMatrix4 world_transform