#include <PhysicsVehicleWheel.h>
List of all members.
Detailed Description
Defines a class for vehicle wheel physics which represents the individual wheel itself as well as the tire and suspension.
- See also:
- http://gameplay3d.github.io/GamePlay/docs/file-formats.html#wiki-Collision_Objects
Member Function Documentation
Gets the breakout friction.
- Returns:
- the breakout friction.
Gets roll influence which determines how side friction affects chassis roll.
- Returns:
- roll influence, normalized factor.
Gets offset from the default strut connection point. The default strut connection point is determined from the position of the wheel node relative to the chassis node, and uses the specified value for strut rest length to locate the connection point above it (i.e., in the specified direction of strut compression). Any non-zero strut connection offset acts as a delta from the computed default.
- Parameters:
-
strutConnectionOffset | address of where to store the result. |
Gets strut damping under compression, normalized to chassis mass.
- Returns:
- strut damping under compression, normalized to chassis mass.
Gets strut damping under relaxation, normalized to chassis mass.
- Returns:
- strut damping under relaxation, normalized to chassis mass.
Gets the maximum strut force.
- Returns:
- the maximum strut force.
Gets the strut rest length.
- Returns:
- the strut rest length.
Gets the strut stiffness, normalized to chassis mass.
- Returns:
- the strut stiffness, normalized to chassis mass.
Gets the maximum strut travel.
- Returns:
- the maximum strut travel.
Gets direction of axle (the spin axis), in chassis space.
- Parameters:
-
wheelAxle | address of where to store the result. |
Gets direction of strut extension, in chassis space.
- Parameters:
-
wheelDirection | address of where to store the result. |
Gets the wheel radius.
- Returns:
- the wheel radius.
Returns true if this wheel is steerable, false otherwise.
- Returns:
- true if this wheel is steerable, false otherwise.
Sets the breakout friction.
- Parameters:
-
frictionBreakout | the breakout friction. |
Sets roll influence which determines how side friction affects chassis roll.
- Parameters:
-
rollInfluence | roll influence, normalized factor. |
Sets whether this wheel is steerable.
- Parameters:
-
steerable | true if this wheel is steerable, false otherwise. |
Sets offset from the default strut connection point. The default strut connection point is determined from the position of the wheel node relative to the chassis node, and uses the specified value for strut rest length to locate the connection point above it (i.e., in the specified direction of strut compression). Any non-zero strutConnectionOffset acts as a delta from the computed default.
- Parameters:
-
strutConnectionOffset | offset from the default strut connection point. |
Sets strut damping under compression, normalized to chassis mass.
- Parameters:
-
strutDampingCompression | strut damping under compression, normalized to chassis mass. |
Sets strut damping under relaxation, normalized to chassis mass.
- Parameters:
-
strutDampingRelaxation | strut damping under relaxation, normalized to chassis mass. |
Sets the maximum strut force.
- Parameters:
-
strutForceMax | the maximum strut force. |
Sets the strut rest length.
- Parameters:
-
strutRestLength | the strut rest length. |
Sets the strut stiffness, normalized to chassis mass.
- Parameters:
-
strutStiffness | the strut stiffness, normalized to chassis mass. |
Sets the maximum strut travel.
- Parameters:
-
strutTravelMax | the maximum strut travel. |
Sets direction of axle (the spin axis), in chassis space.
- Parameters:
-
wheelAxle | direction of axle (the spin axis). |
Sets direction of strut extension, in chassis space.
- Parameters:
-
wheelDirection | direction of strut extension. |
Sets the wheel radius.
- Parameters:
-
wheelRadius | the wheel radius. |
Apply this wheel's world transform to the specified node. Useful for updating the specified visual node with the current transform.
- Parameters:
-
node | the node to be transformed; (typically a visual representation of this wheel). |