# 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

__init__(param0: BulletWheel)
property brakefloat
Getter

Returns the amount of braking force currently applied.

Setter

property chassis_connection_point_cs → LPoint3
Getter

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

Setter

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

property clipped_inv_connection_point_csfloat

Getter Setter

property delta_rotationfloat

Getter Setter

property engine_forcefloat
Getter

Returns the amount of accelleration force currently applied.

Setter

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

property friction_slipfloat
Getter

Returns how slippery the tyres are.

Setter

Sets the slipperyness of the tyre.

property front_wheelbool
Getter

Determines if a wheel is steerable.

Setter

Sets if the wheel is steerable.

getBrake()float

Returns the amount of braking force currently applied.

getChassisConnectionPointCs()panda3d.core.LPoint3

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

getClippedInvConnectionPointCs()float
getDeltaRotation()float
getEngineForce()float

Returns the amount of accelleration force currently applied.

getFrictionSlip()float

Returns how slippery the tyres are.

getMaxSuspensionForce()float

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

getMaxSuspensionTravelCm()float
getNode()panda3d.core.PandaNode

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

getRaycastInfo()BulletWheelRaycastInfo
getRollInfluence()float

Returns the factor by which roll forces are scaled. See setRollInfluence().

getRotation()float
getSkidInfo()float
getSteering()float

Returns the steering angle in degrees.

getSuspensionRelativeVelocity()float
getSuspensionRestLength()float

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

getSuspensionStiffness()float

Returns the stiffness of the suspension.

getWheelAxleCs()panda3d.core.LVector3

Returns the normal vector of the wheel axle.

getWheelDirectionCs()panda3d.core.LVector3

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

getWheelRadius()float

getWheelsDampingCompression()float

Returns the damping applied to the compressing suspension.

getWheelsDampingRelaxation()float

Returns the damping applied to the relaxing suspension.

getWheelsSuspensionForce()float
getWorldTransform()panda3d.core.LMatrix4
isFrontWheel()bool

Determines if a wheel is steerable.

property max_suspension_forcefloat
Getter

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

Setter

Sets the maximum suspension force the wheel can handle.

property max_suspension_travel_cmfloat

Getter Setter

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

property node → PandaNode
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.

property raycast_infoBulletWheelRaycastInfo
property roll_influencefloat
Getter

Returns the factor by which roll forces are scaled. See setRollInfluence().

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.

property rotationfloat

Getter Setter

setBrake(value: float)None
setChassisConnectionPointCs(pos: panda3d.core.LPoint3)None

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

setClippedInvConnectionPointCs(value: float)None
setDeltaRotation(value: float)None
setEngineForce(value: float)None

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

setFrictionSlip(value: float)None

Sets the slipperyness of the tyre.

setFrontWheel(value: bool)None

Sets if the wheel is steerable.

setMaxSuspensionForce(value: float)None

Sets the maximum suspension force the wheel can handle.

setMaxSuspensionTravelCm(value: float)None

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

setNode(node: panda3d.core.PandaNode)None

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

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.

setRotation(value: float)None
setSkidInfo(value: float)None
setSteering(value: float)None

Sets the steering angle.

setSuspensionRelativeVelocity(value: float)None
setSuspensionStiffness(value: float)None

Sets how stiff the suspension shall be.

setWheelAxleCs(axle: panda3d.core.LVector3)None

Determines the wheel axle normal vector.

setWheelDirectionCs(dir: panda3d.core.LVector3)None

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

setWheelRadius(value: float)None

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.

setWheelsSuspensionForce(value: float)None
setWorldTransform(mat: panda3d.core.LMatrix4)None
property skid_infofloat

Getter Setter

property steeringfloat
Getter

Returns the steering angle in degrees.

Setter

Sets the steering angle.

property suspension_relative_velocityfloat

Getter Setter

property suspension_rest_lengthfloat

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

property suspension_stiffnessfloat
Getter

Returns the stiffness of the suspension.

Setter

Sets how stiff the suspension shall be.

property wheel_axle_cs → LVector3
Getter

Returns the normal vector of the wheel axle.

Setter

Determines the wheel axle normal vector.

property wheel_direction_cs → LVector3
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.)

property wheel_radiusfloat
Getter

Setter

property wheels_damping_compressionfloat
Getter

Returns the damping applied to the compressing suspension.

Setter

Sets the damping forces applied when the suspension gets compressed.

property wheels_damping_relaxationfloat
Getter

Returns the damping applied to the relaxing suspension.

Setter

Sets the damping forces applied when the suspension relaxes.

property wheels_suspension_forcefloat

Getter Setter

property world_transform → LMatrix4

Getter Setter