BulletWheel

from panda3d.bullet import BulletWheel
class BulletWheel

Bases:

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)
property brake float
Getter

Returns the amount of braking force currently applied.

Setter

property chassis_connection_point_cs LPoint3

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

property clipped_inv_connection_point_cs float
property delta_rotation float
property engine_force float
Getter

Returns the amount of accelleration force currently applied.

Setter

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

property friction_slip float
Getter

Returns how slippery the tyres are.

Setter

Sets the slipperyness of the tyre.

property front_wheel bool

Determines/Sets if a/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

Returns the wheel radius.

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_force float

Returns/Sets the maximum force/suspension (weight)/force the suspension/wheel can handle.

property max_suspension_travel_cm float

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_info BulletWheelRaycastInfo
property roll_influence float
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 rotation float
setBrake(value: float)
setChassisConnectionPointCs(pos: panda3d.core.LPoint3)

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

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

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

setFrictionSlip(value: float)

Sets the slipperyness of the tyre.

setFrontWheel(value: bool)

Sets if the wheel is steerable.

setMaxSuspensionForce(value: float)

Sets the maximum suspension force the wheel can handle.

setMaxSuspensionTravelCm(value: float)

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

setNode(node: panda3d.core.PandaNode)

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

setRollInfluence(value: float)

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)
setSkidInfo(value: float)
setSteering(value: float)

Sets the steering angle.

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

Sets how stiff the suspension shall be.

setWheelAxleCs(axle: panda3d.core.LVector3)

Determines the wheel axle normal vector.

setWheelDirectionCs(dir: panda3d.core.LVector3)

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

setWheelRadius(value: float)

Sets the wheel radius.

setWheelsDampingCompression(value: float)

Sets the damping forces applied when the suspension gets compressed.

setWheelsDampingRelaxation(value: float)

Sets the damping forces applied when the suspension relaxes.

setWheelsSuspensionForce(value: float)
setWorldTransform(mat: panda3d.core.LMatrix4)
property skid_info float
property steering float
Getter

Returns the steering angle in degrees.

Setter

Sets the steering angle.

property suspension_relative_velocity float
property suspension_rest_length float

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

property suspension_stiffness float
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_radius float

Returns/Sets the wheel radius.

property wheels_damping_compression float
Getter

Returns the damping applied to the compressing suspension.

Setter

Sets the damping forces applied when the suspension gets compressed.

property wheels_damping_relaxation float
Getter

Returns the damping applied to the relaxing suspension.

Setter

Sets the damping forces applied when the suspension relaxes.

property wheels_suspension_force float
property world_transform LMatrix4