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.create_wheel()
.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.
- get_chassis_connection_point_cs() panda3d.core.LPoint3
Returns the point where the wheel is connected to the chassis.
- get_node() panda3d.core.PandaNode
Returns the
PandaNode
which representates the visual appearance of this wheel, if such a representation has been set previously.
- get_raycast_info() BulletWheelRaycastInfo
- get_roll_influence() float
Returns the factor by which roll forces are scaled. See
set_roll_influence()
.
- get_steering() float
Returns the steering angle in degrees.
Warning
As of 1.11, this method uses degrees. Previous versions used radians.
- get_suspension_rest_length() float
Returns the length of the suspension when the vehicle is standing still.
- get_wheel_axle_cs() panda3d.core.LVector3
Returns the normal vector of the wheel axle.
- get_wheel_direction_cs() panda3d.core.LVector3
Returns the wheel’s forward vector relative to the chassis.
- get_world_transform() 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
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.
- set_chassis_connection_point_cs(pos: panda3d.core.LPoint3)
Sets the point where the wheel is connected to the chassis.
- set_max_suspension_travel_cm(value: float)
Sets the maximum distance the suspension can travel out of the resting position in centimeters.
- set_node(node: panda3d.core.PandaNode)
Sets the
PandaNode
which representates the visual appearance of this wheel.
- set_roll_influence(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.
- set_steering(value: float)
Sets the steering angle.
Warning
As of 1.11, this method uses degrees. Previous versions used radians.
- set_wheel_axle_cs(axle: panda3d.core.LVector3)
Determines the wheel axle normal vector.
- set_wheel_direction_cs(dir: panda3d.core.LVector3)
Sets the wheel’s forward vector. (Most likely orthogonal to the axle vector.)
- set_wheels_damping_compression(value: float)
Sets the damping forces applied when the suspension gets compressed.
- set_wheels_damping_relaxation(value: float)
Sets the damping forces applied when the suspension relaxes.
- set_world_transform(mat: panda3d.core.LMatrix4)
- property steering float
- Getter
Returns the steering angle in degrees.
Warning
As of 1.11, this method uses degrees. Previous versions used radians.
- Setter
Sets the steering angle.
Warning
As of 1.11, this method uses degrees. Previous versions used radians.
- 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.