BulletWheel
from panda3d.bullet import BulletWheel
- class BulletWheel
Bases:
One wheel of a
BulletVehicle
. Instances should not be created directly but using the factory methodBulletVehicle.createWheel()
.Inheritance diagram
- __init__(param0: BulletWheel)
- property chassis_connection_point_cs LPoint3
Returns/Sets the point where the wheel is connected to the chassis.
- 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.
- getChassisConnectionPointCs() panda3d.core.LPoint3
Returns the point where the wheel is connected to the chassis.
- 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()
.
- getSuspensionRestLength() float
Returns the length of the suspension when the vehicle is standing still.
- 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.
- getWorldTransform() panda3d.core.LMatrix4
- 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 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.
- setChassisConnectionPointCs(pos: panda3d.core.LPoint3)
Sets the point where the wheel is connected to the chassis.
- 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.
- 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.)
- 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.
- setWorldTransform(mat: panda3d.core.LMatrix4)
- property steering float
- Getter
Returns the steering angle in degrees.
- Setter
Sets the steering angle.
- 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 wheels_damping_compression float
- Getter
Returns the damping applied to the compressing suspension.
- Setter
Sets the damping forces applied when the suspension gets compressed.