Panda3D

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BulletWheel Class Reference

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

## Detailed Description

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.

## Member Function Documentation

## ◆ empty()

BulletWheel BulletWheel::empty | ( |  | ) |
| inline static

Named constructor intended to be used for asserts with have to return a concrete value.

Definition at line 34 of file bulletWheel.I.

## Member Data Documentation

## ◆ get_brake

PN_stdfloat BulletWheel::get_brake

Returns the amount of braking force currently applied.

Definition at line 131 of file bulletWheel.h.

## ◆ get_chassis_connection_point_cs

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.

## ◆ get_engine_force

PN_stdfloat BulletWheel::get_engine_force

Returns the amount of accelleration force currently applied.

Definition at line 130 of file bulletWheel.h.

## ◆ get_friction_slip

PN_stdfloat BulletWheel::get_friction_slip

Returns how slippery the tyres are.

Definition at line 121 of file bulletWheel.h.

## ◆ get_max_suspension_force

PN_stdfloat BulletWheel::get_max_suspension_force

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

Definition at line 122 of file bulletWheel.h.

## ◆ get_node

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.

## ◆ get_roll_influence

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.

## ◆ get_steering

PN_stdfloat BulletWheel::get_steering

Returns the steering angle in degrees.

Definition at line 127 of file bulletWheel.h.

## ◆ get_suspension_rest_length

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.

## ◆ get_suspension_stiffness

PN_stdfloat BulletWheel::get_suspension_stiffness

Returns the stiffness of the suspension.

Definition at line 119 of file bulletWheel.h.

## ◆ get_wheel_axle_cs

LVector3 BulletWheel::get_wheel_axle_cs

Returns the normal vector of the wheel axle.

Definition at line 138 of file bulletWheel.h.

## ◆ get_wheel_direction_cs

LVector3 BulletWheel::get_wheel_direction_cs

Returns the wheel's forward vector relative to the chassis.

Definition at line 137 of file bulletWheel.h.

## ◆ get_wheel_radius

PN_stdfloat BulletWheel::get_wheel_radius

Returns the wheel radius.

Definition at line 126 of file bulletWheel.h.

## ◆ get_wheels_damping_compression

PN_stdfloat BulletWheel::get_wheels_damping_compression

Returns the damping applied to the compressing suspension.

Definition at line 123 of file bulletWheel.h.

## ◆ get_wheels_damping_relaxation

PN_stdfloat BulletWheel::get_wheels_damping_relaxation

Returns the damping applied to the relaxing suspension.

Definition at line 124 of file bulletWheel.h.

## ◆ is_front_wheel

bool BulletWheel::is_front_wheel

Determines if a wheel is steerable.

Definition at line 140 of file bulletWheel.h.

## ◆ set_chassis_connection_point_cs

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.

## ◆ set_engine_force

void BulletWheel::set_engine_force

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

Definition at line 130 of file bulletWheel.h.

## ◆ set_friction_slip

void BulletWheel::set_friction_slip

Sets the slipperyness of the tyre.

Definition at line 121 of file bulletWheel.h.

## ◆ set_front_wheel

void BulletWheel::set_front_wheel

Sets if the wheel is steerable.

Definition at line 140 of file bulletWheel.h.

## ◆ set_max_suspension_force

void BulletWheel::set_max_suspension_force

Sets the maximum suspension force the wheel can handle.

Definition at line 122 of file bulletWheel.h.

## ◆ set_max_suspension_travel_cm

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.

## ◆ set_node

void BulletWheel::set_node

Sets the PandaNode which representates the visual appearance of this wheel.

Definition at line 141 of file bulletWheel.h.

## ◆ set_roll_influence

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.

## ◆ set_steering

void BulletWheel::set_steering

Sets the steering angle.

Definition at line 127 of file bulletWheel.h.

## ◆ set_suspension_stiffness

void BulletWheel::set_suspension_stiffness

Sets how stiff the suspension shall be.

Definition at line 119 of file bulletWheel.h.

## ◆ set_wheel_axle_cs

void BulletWheel::set_wheel_axle_cs

Determines the wheel axle normal vector.

Definition at line 138 of file bulletWheel.h.

## ◆ set_wheel_direction_cs

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.

## ◆ set_wheel_radius

void BulletWheel::set_wheel_radius

Sets the wheel radius.

Definition at line 126 of file bulletWheel.h.

## ◆ set_wheels_damping_compression

void BulletWheel::set_wheels_damping_compression

Sets the damping forces applied when the suspension gets compressed.

Definition at line 123 of file bulletWheel.h.

## ◆ set_wheels_damping_relaxation

void BulletWheel::set_wheels_damping_relaxation

Sets the damping forces applied when the suspension relaxes.

Definition at line 124 of file bulletWheel.h.

The documentation for this class was generated from the following files:

- panda/src/bullet/bulletWheel.h
- panda/src/bullet/bulletWheel.cxx
- panda/src/bullet/bulletWheel.I