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.create_wheel().

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.

get_brake() float

Returns the amount of braking force currently applied.

get_chassis_connection_point_cs() panda3d.core.LPoint3

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

get_clipped_inv_connection_point_cs() float
get_delta_rotation() float
get_engine_force() float

Returns the amount of accelleration force currently applied.

get_friction_slip() float

Returns how slippery the tyres are.

get_max_suspension_force() float

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

get_max_suspension_travel_cm() float
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_rotation() float
get_skid_info() float
get_steering() float

Returns the steering angle in degrees.

Warning

As of 1.11, this method uses degrees. Previous versions used radians.

get_suspension_relative_velocity() float
get_suspension_rest_length() float

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

get_suspension_stiffness() float

Returns the stiffness of the suspension.

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_wheel_radius() float

Returns the wheel radius.

get_wheels_damping_compression() float

Returns the damping applied to the compressing suspension.

get_wheels_damping_relaxation() float

Returns the damping applied to the relaxing suspension.

get_wheels_suspension_force() float
get_world_transform() panda3d.core.LMatrix4
is_front_wheel() 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 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.

property rotation float
set_brake(value: float)
set_chassis_connection_point_cs(pos: panda3d.core.LPoint3)

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

set_clipped_inv_connection_point_cs(value: float)
set_delta_rotation(value: float)
set_engine_force(value: float)

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

set_friction_slip(value: float)

Sets the slipperyness of the tyre.

set_front_wheel(value: bool)

Sets if the wheel is steerable.

set_max_suspension_force(value: float)

Sets the maximum suspension force the wheel can handle.

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_rotation(value: float)
set_skid_info(value: float)
set_steering(value: float)

Sets the steering angle.

Warning

As of 1.11, this method uses degrees. Previous versions used radians.

set_suspension_relative_velocity(value: float)
set_suspension_stiffness(value: float)

Sets how stiff the suspension shall be.

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

Sets the wheel radius.

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_wheels_suspension_force(value: float)
set_world_transform(mat: panda3d.core.LMatrix4)
property skid_info float
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_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