One wheel of a BulletVehicle. More...
#include "bulletWheel.h"
Public Member Functions | |
BulletWheel (btWheelInfo &info) | |
PN_stdfloat | get_brake () const |
LPoint3 | get_chassis_connection_point_cs () const |
PN_stdfloat | get_clipped_inv_connection_point_cs () const |
PN_stdfloat | get_delta_rotation () const |
PN_stdfloat | get_engine_force () const |
PN_stdfloat | get_friction_slip () const |
PN_stdfloat | get_max_suspension_force () const |
PN_stdfloat | get_max_suspension_travel_cm () const |
PandaNode * | get_node () const |
BulletWheelRaycastInfo | get_raycast_info () const |
PN_stdfloat | get_roll_influence () const |
PN_stdfloat | get_rotation () const |
PN_stdfloat | get_skid_info () const |
PN_stdfloat | get_steering () const |
PN_stdfloat | get_suspension_relative_velocity () const |
PN_stdfloat | get_suspension_rest_length () const |
PN_stdfloat | get_suspension_stiffness () const |
LVector3 | get_wheel_axle_cs () const |
LVector3 | get_wheel_direction_cs () const |
PN_stdfloat | get_wheel_radius () const |
PN_stdfloat | get_wheels_damping_compression () const |
PN_stdfloat | get_wheels_damping_relaxation () const |
PN_stdfloat | get_wheels_suspension_force () const |
LMatrix4 | get_world_transform () const |
bool | is_front_wheel () const |
void | set_brake (PN_stdfloat value) |
void | set_chassis_connection_point_cs (const LPoint3 &pos) |
void | set_clipped_inv_connection_point_cs (PN_stdfloat value) |
void | set_delta_rotation (PN_stdfloat value) |
void | set_engine_force (PN_stdfloat value) |
void | set_friction_slip (PN_stdfloat value) |
void | set_front_wheel (bool value) |
void | set_max_suspension_force (PN_stdfloat value) |
void | set_max_suspension_travel_cm (PN_stdfloat value) |
void | set_node (PandaNode *node) |
void | set_roll_influence (PN_stdfloat value) |
void | set_rotation (PN_stdfloat value) |
void | set_skid_info (PN_stdfloat value) |
void | set_steering (PN_stdfloat value) |
void | set_suspension_relative_velocity (PN_stdfloat value) |
void | set_suspension_stiffness (PN_stdfloat value) |
void | set_wheel_axle_cs (const LVector3 &axle) |
void | set_wheel_direction_cs (const LVector3 &dir) |
void | set_wheel_radius (PN_stdfloat value) |
void | set_wheels_damping_compression (PN_stdfloat value) |
void | set_wheels_damping_relaxation (PN_stdfloat value) |
void | set_wheels_suspension_force (PN_stdfloat value) |
void | set_world_transform (const LMatrix4 &mat) |
Static Public Member Functions | |
static BulletWheel | empty () |
Named constructor intended to be used for asserts with have to return a concrete value. More... | |
Public Attributes | |
get_brake | |
Returns the amount of braking force currently applied. More... | |
get_chassis_connection_point_cs | |
Returns the point where the wheel is connected to the chassis. More... | |
get_clipped_inv_connection_point_cs | |
get_delta_rotation | |
get_engine_force | |
Returns the amount of accelleration force currently applied. More... | |
get_friction_slip | |
Returns how slippery the tyres are. More... | |
get_max_suspension_force | |
Returns the maximum force (weight) the suspension can handle. More... | |
get_max_suspension_travel_cm | |
get_node | |
Returns the PandaNode which representates the visual appearance of this wheel, if such a representation has been set previously. More... | |
get_raycast_info | |
get_roll_influence | |
Returns the factor by which roll forces are scaled. More... | |
get_rotation | |
get_skid_info | |
get_steering | |
Returns the steering angle in degrees. More... | |
get_suspension_relative_velocity | |
get_suspension_rest_length | |
Returns the length of the suspension when the vehicle is standing still. More... | |
get_suspension_stiffness | |
Returns the stiffness of the suspension. More... | |
get_wheel_axle_cs | |
Returns the normal vector of the wheel axle. More... | |
get_wheel_direction_cs | |
Returns the wheel's forward vector relative to the chassis. More... | |
get_wheel_radius | |
Returns the wheel radius. More... | |
get_wheels_damping_compression | |
Returns the damping applied to the compressing suspension. More... | |
get_wheels_damping_relaxation | |
Returns the damping applied to the relaxing suspension. More... | |
get_wheels_suspension_force | |
get_world_transform | |
is_front_wheel | |
Determines if a wheel is steerable. More... | |
set_brake | |
set_chassis_connection_point_cs | |
Sets the point where the wheel is connected to the chassis. More... | |
set_clipped_inv_connection_point_cs | |
set_delta_rotation | |
set_engine_force | |
Defines how much force should be used to rotate the wheel. More... | |
set_friction_slip | |
Sets the slipperyness of the tyre. More... | |
set_front_wheel | |
Sets if the wheel is steerable. More... | |
set_max_suspension_force | |
Sets the maximum suspension force the wheel can handle. More... | |
set_max_suspension_travel_cm | |
Sets the maximum distance the suspension can travel out of the resting position in centimeters. More... | |
set_node | |
Sets the PandaNode which representates the visual appearance of this wheel. More... | |
set_roll_influence | |
Defines a scaling factor for roll forces that affect the chassis. More... | |
set_rotation | |
set_skid_info | |
set_steering | |
Sets the steering angle. More... | |
set_suspension_relative_velocity | |
set_suspension_stiffness | |
Sets how stiff the suspension shall be. More... | |
set_wheel_axle_cs | |
Determines the wheel axle normal vector. More... | |
set_wheel_direction_cs | |
Sets the wheel's forward vector. More... | |
set_wheel_radius | |
Sets the wheel radius. More... | |
set_wheels_damping_compression | |
Sets the damping forces applied when the suspension gets compressed. More... | |
set_wheels_damping_relaxation | |
Sets the damping forces applied when the suspension relaxes. More... | |
set_wheels_suspension_force | |
set_world_transform | |
One wheel of a BulletVehicle.
Instances should not be created directly but using the factory method BulletVehicle::create_wheel().
Definition at line 62 of file bulletWheel.h.
|
inlinestatic |
Named constructor intended to be used for asserts with have to return a concrete value.
Definition at line 35 of file bulletWheel.I.
PN_stdfloat BulletWheel::get_brake |
Returns the amount of braking force currently applied.
Definition at line 131 of file bulletWheel.h.
LPoint3 BulletWheel::get_chassis_connection_point_cs |
Returns the point where the wheel is connected to the chassis.
Definition at line 136 of file bulletWheel.h.
PN_stdfloat BulletWheel::get_engine_force |
Returns the amount of accelleration force currently applied.
Definition at line 130 of file bulletWheel.h.
PN_stdfloat BulletWheel::get_friction_slip |
Returns how slippery the tyres are.
Definition at line 121 of file bulletWheel.h.
PN_stdfloat BulletWheel::get_max_suspension_force |
Returns the maximum force (weight) the suspension can handle.
Definition at line 122 of file bulletWheel.h.
PandaNode * BulletWheel::get_node |
Returns the PandaNode which representates the visual appearance of this wheel, if such a representation has been set previously.
Definition at line 141 of file bulletWheel.h.
PN_stdfloat BulletWheel::get_roll_influence |
Returns the factor by which roll forces are scaled.
See set_roll_influence.
Definition at line 125 of file bulletWheel.h.
PN_stdfloat BulletWheel::get_steering |
Returns the steering angle in degrees.
Definition at line 127 of file bulletWheel.h.
PN_stdfloat BulletWheel::get_suspension_rest_length |
Returns the length of the suspension when the vehicle is standing still.
Definition at line 118 of file bulletWheel.h.
PN_stdfloat BulletWheel::get_suspension_stiffness |
Returns the stiffness of the suspension.
Definition at line 119 of file bulletWheel.h.
LVector3 BulletWheel::get_wheel_axle_cs |
Returns the normal vector of the wheel axle.
Definition at line 138 of file bulletWheel.h.
LVector3 BulletWheel::get_wheel_direction_cs |
Returns the wheel's forward vector relative to the chassis.
Definition at line 137 of file bulletWheel.h.
PN_stdfloat BulletWheel::get_wheel_radius |
Returns the wheel radius.
Definition at line 126 of file bulletWheel.h.
PN_stdfloat BulletWheel::get_wheels_damping_compression |
Returns the damping applied to the compressing suspension.
Definition at line 123 of file bulletWheel.h.
PN_stdfloat BulletWheel::get_wheels_damping_relaxation |
Returns the damping applied to the relaxing suspension.
Definition at line 124 of file bulletWheel.h.
bool BulletWheel::is_front_wheel |
Determines if a wheel is steerable.
Definition at line 140 of file bulletWheel.h.
void BulletWheel::set_chassis_connection_point_cs |
Sets the point where the wheel is connected to the chassis.
Definition at line 136 of file bulletWheel.h.
void BulletWheel::set_engine_force |
Defines how much force should be used to rotate the wheel.
Definition at line 130 of file bulletWheel.h.
void BulletWheel::set_friction_slip |
Sets the slipperyness of the tyre.
Definition at line 121 of file bulletWheel.h.
void BulletWheel::set_front_wheel |
Sets if the wheel is steerable.
Definition at line 140 of file bulletWheel.h.
void BulletWheel::set_max_suspension_force |
Sets the maximum suspension force the wheel can handle.
Definition at line 122 of file bulletWheel.h.
void BulletWheel::set_max_suspension_travel_cm |
Sets the maximum distance the suspension can travel out of the resting position in centimeters.
Definition at line 120 of file bulletWheel.h.
void BulletWheel::set_node |
Sets the PandaNode which representates the visual appearance of this wheel.
Definition at line 141 of file bulletWheel.h.
void BulletWheel::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.
Definition at line 125 of file bulletWheel.h.
void BulletWheel::set_steering |
Sets the steering angle.
Definition at line 127 of file bulletWheel.h.
void BulletWheel::set_suspension_stiffness |
Sets how stiff the suspension shall be.
Definition at line 119 of file bulletWheel.h.
void BulletWheel::set_wheel_axle_cs |
Determines the wheel axle normal vector.
Definition at line 138 of file bulletWheel.h.
void BulletWheel::set_wheel_direction_cs |
Sets the wheel's forward vector.
(Most likely orthogonal to the axle vector.)
Definition at line 137 of file bulletWheel.h.
void BulletWheel::set_wheel_radius |
Sets the wheel radius.
Definition at line 126 of file bulletWheel.h.
void BulletWheel::set_wheels_damping_compression |
Sets the damping forces applied when the suspension gets compressed.
Definition at line 123 of file bulletWheel.h.
void BulletWheel::set_wheels_damping_relaxation |
Sets the damping forces applied when the suspension relaxes.
Definition at line 124 of file bulletWheel.h.