BulletWheel¶
from acron.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
digraph inheritance0ccfd49bd1 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "BulletWheel" [URL="acron.bullet.BulletWheel.html#acron.bullet.BulletWheel",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "BulletWheel" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; }- __init__()¶
- 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_brake()¶
Returns the amount of braking force currently applied.
- get_chassis_connection_point_cs()¶
Returns the point where the wheel is connected to the chassis.
- get_clipped_inv_connection_point_cs()¶
- get_delta_rotation()¶
- get_engine_force()¶
Returns the amount of accelleration force currently applied.
- get_friction_slip()¶
Returns how slippery the tyres are.
- get_max_suspension_force()¶
Returns the maximum force (weight) the suspension can handle.
- get_max_suspension_travel_cm()¶
- get_node()¶
Returns the
AcronNodewhich representates the visual appearance of this wheel, if such a representation has been set previously.
- get_raycast_info()¶
- get_roll_influence()¶
Returns the factor by which roll forces are scaled. See
set_roll_influence().
- get_rotation()¶
- get_skid_info()¶
- get_steering()¶
Returns the steering angle in degrees.
Warning
As of 1.11, this method uses degrees. Previous versions used radians.
- get_suspension_relative_velocity()¶
- get_suspension_rest_length()¶
Returns the length of the suspension when the vehicle is standing still.
- get_suspension_stiffness()¶
Returns the stiffness of the suspension.
- get_wheel_axle_cs()¶
Returns the normal vector of the wheel axle.
- get_wheel_direction_cs()¶
Returns the wheel’s forward vector relative to the chassis.
- get_wheel_radius()¶
Returns the wheel radius.
- get_wheels_damping_compression()¶
Returns the damping applied to the compressing suspension.
- get_wheels_damping_relaxation()¶
Returns the damping applied to the relaxing suspension.
- get_wheels_suspension_force()¶
- get_world_transform()¶
- is_front_wheel()¶
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 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_brake()¶
- set_chassis_connection_point_cs()¶
Sets the point where the wheel is connected to the chassis.
- set_clipped_inv_connection_point_cs()¶
- set_delta_rotation()¶
- set_engine_force()¶
Defines how much force should be used to rotate the wheel.
- set_friction_slip()¶
Sets the slipperyness of the tyre.
- set_front_wheel()¶
Sets if the wheel is steerable.
- set_max_suspension_force()¶
Sets the maximum suspension force the wheel can handle.
- set_max_suspension_travel_cm()¶
Sets the maximum distance the suspension can travel out of the resting position in centimeters.
- set_roll_influence()¶
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()¶
- set_skid_info()¶
- set_steering()¶
Sets the steering angle.
Warning
As of 1.11, this method uses degrees. Previous versions used radians.
- set_suspension_relative_velocity()¶
- set_suspension_stiffness()¶
Sets how stiff the suspension shall be.
- set_wheel_axle_cs()¶
Determines the wheel axle normal vector.
- set_wheel_direction_cs()¶
Sets the wheel’s forward vector. (Most likely orthogonal to the axle vector.)
- set_wheel_radius()¶
Sets the wheel radius.
- set_wheels_damping_compression()¶
Sets the damping forces applied when the suspension gets compressed.
- set_wheels_damping_relaxation()¶
Sets the damping forces applied when the suspension relaxes.
- set_wheels_suspension_force()¶
- set_world_transform()¶
- 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.