panda3d.bullet.BulletWheel

from panda3d.bullet import BulletWheel
class BulletWheel

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

Inheritance diagram

Inheritance diagram of BulletWheel

__init__(param0: BulletWheel) → None
setSuspensionStiffness(value: float) → None

Sets how stiff the suspension shall be.

setMaxSuspensionTravelCm(value: float) → None

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

setFrictionSlip(value: float) → None

Sets the slipperyness of the tyre.

setMaxSuspensionForce(value: float) → None

Sets the maximum suspension force the wheel can handle.

setWheelsDampingCompression(value: float) → None

Sets the damping forces applied when the suspension gets compressed.

setWheelsDampingRelaxation(value: float) → None

Sets the damping forces applied when the suspension relaxes.

setRollInfluence(value: float) → None

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.

setWheelRadius(value: float) → None

Sets the wheel radius.

setSteering(value: float) → None

Sets the steering angle.

setRotation(value: float) → None
setDeltaRotation(value: float) → None
setEngineForce(value: float) → None

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

setBrake(value: float) → None
setSkidInfo(value: float) → None
setWheelsSuspensionForce(value: float) → None
setSuspensionRelativeVelocity(value: float) → None
setClippedInvConnectionPointCs(value: float) → None
setChassisConnectionPointCs(pos: LPoint3) → None

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

setWheelDirectionCs(dir: LVector3) → None

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

setWheelAxleCs(axle: LVector3) → None

Determines the wheel axle normal vector.

setWorldTransform(mat: LMatrix4) → None
setFrontWheel(value: bool) → None

Sets if the wheel is steerable.

setNode(node: PandaNode) → None

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

getSuspensionRestLength() → float

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

getSuspensionStiffness() → float

Returns the stiffness of the suspension.

getMaxSuspensionTravelCm() → float
getFrictionSlip() → float

Returns how slippery the tyres are.

getMaxSuspensionForce() → float

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

getWheelsDampingCompression() → float

Returns the damping applied to the compressing suspension.

getWheelsDampingRelaxation() → float

Returns the damping applied to the relaxing suspension.

getRollInfluence() → float

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

getWheelRadius() → float

Returns the wheel radius.

getSteering() → float

Returns the steering angle in degrees.

getRotation() → float
getDeltaRotation() → float
getEngineForce() → float

Returns the amount of accelleration force currently applied.

getBrake() → float

Returns the amount of braking force currently applied.

getSkidInfo() → float
getWheelsSuspensionForce() → float
getSuspensionRelativeVelocity() → float
getClippedInvConnectionPointCs() → float
getChassisConnectionPointCs() → LPoint3

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

Return type

LPoint3

getWheelDirectionCs() → LVector3

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

Return type

LVector3

getWheelAxleCs() → LVector3

Returns the normal vector of the wheel axle.

Return type

LVector3

getWorldTransform() → LMatrix4
Return type

LMatrix4

isFrontWheel() → bool

Determines if a wheel is steerable.

getNode() → PandaNode

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

Return type

PandaNode

getRaycastInfo() → BulletWheelRaycastInfo
Return type

BulletWheelRaycastInfo

property raycast_info
Return type

BulletWheelRaycastInfo

property suspension_rest_length

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

Return type

float

property suspension_stiffness
Getter

Returns the stiffness of the suspension.

Setter

Sets how stiff the suspension shall be.

Return type

float

property max_suspension_travel_cm

Getter Setter

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

Return type

float

property friction_slip
Getter

Returns how slippery the tyres are.

Setter

Sets the slipperyness of the tyre.

Return type

float

property max_suspension_force
Getter

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

Setter

Sets the maximum suspension force the wheel can handle.

Return type

float

property wheels_damping_compression
Getter

Returns the damping applied to the compressing suspension.

Setter

Sets the damping forces applied when the suspension gets compressed.

Return type

float

property wheels_damping_relaxation
Getter

Returns the damping applied to the relaxing suspension.

Setter

Sets the damping forces applied when the suspension relaxes.

Return type

float

property roll_influence
Getter

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

Setter

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.

Return type

float

property wheel_radius
Getter

Returns the wheel radius.

Setter

Sets the wheel radius.

Return type

float

property steering
Getter

Returns the steering angle in degrees.

Setter

Sets the steering angle.

Return type

float

property rotation

Getter Setter

Return type

float

property delta_rotation

Getter Setter

Return type

float

property engine_force
Getter

Returns the amount of accelleration force currently applied.

Setter

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

Return type

float

property brake
Getter

Returns the amount of braking force currently applied.

Setter

Return type

float

property skid_info

Getter Setter

Return type

float

property wheels_suspension_force

Getter Setter

Return type

float

property suspension_relative_velocity

Getter Setter

Return type

float

property clipped_inv_connection_point_cs

Getter Setter

Return type

float

property chassis_connection_point_cs
Getter

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

Setter

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

Return type

LPoint3

property wheel_direction_cs
Getter

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

Setter

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

Return type

LVector3

property wheel_axle_cs
Getter

Returns the normal vector of the wheel axle.

Setter

Determines the wheel axle normal vector.

Return type

LVector3

property world_transform

Getter Setter

Return type

LMatrix4

property front_wheel
Getter

Determines if a wheel is steerable.

Setter

Sets if the wheel is steerable.

Return type

bool

property node
Getter

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

Setter

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

Return type

PandaNode