overview wiki api reference download
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Protected Member Functions
gameplay::PhysicsVehicleWheel Class Reference

#include <PhysicsVehicleWheel.h>

Inheritance diagram for gameplay::PhysicsVehicleWheel:
gameplay::PhysicsCollisionObject

List of all members.

Public Member Functions

PhysicsCollisionObject::Type getType () const
void setEnabled (bool enable)
void transform (Node *node) const
bool isSteerable () const
void setSteerable (bool steerable)
void getWheelDirection (Vector3 *wheelDirection) const
void setWheelDirection (const Vector3 &wheelDirection)
void getWheelAxle (Vector3 *wheelAxle) const
void setWheelAxle (const Vector3 &wheelAxle)
void getStrutConnectionOffset (Vector3 *strutConnectionOffset) const
void setStrutConnectionOffset (const Vector3 &strutConnectionOffset)
float getStrutRestLength () const
void setStrutRestLength (float strutRestLength)
float getStrutTravelMax () const
void setStrutTravelMax (float strutTravelMax)
float getStrutStiffness () const
void setStrutStiffness (float strutStiffness)
float getStrutDampingCompression () const
void setStrutDampingCompression (float strutDampingCompression)
float getStrutDampingRelaxation () const
void setStrutDampingRelaxation (float strutDampingRelaxation)
float getStrutForceMax () const
void setStrutForceMax (float strutForceMax)
float getFrictionBreakout () const
void setFrictionBreakout (float frictionBreakout)
float getWheelRadius () const
void setWheelRadius (float wheelRadius)
float getRollInfluence () const
void setRollInfluence (float rollInfluence)

Protected Member Functions

btCollisionObject * getCollisionObject () const

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

btCollisionObject* gameplay::PhysicsVehicleWheel::getCollisionObject ( ) const [protected, virtual]

Gets the breakout friction.

Returns:
the breakout friction.

Gets roll influence which determines how side friction affects chassis roll.

Returns:
roll influence, normalized factor.
void gameplay::PhysicsVehicleWheel::getStrutConnectionOffset ( Vector3 strutConnectionOffset) const

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:
strutConnectionOffsetaddress 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:
wheelAxleaddress of where to store the result.

Gets direction of strut extension, in chassis space.

Parameters:
wheelDirectionaddress 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.

Operation not supported. Use host vehicle's setEnabled() instead.

Reimplemented from gameplay::PhysicsCollisionObject.

void gameplay::PhysicsVehicleWheel::setFrictionBreakout ( float  frictionBreakout)

Sets the breakout friction.

Parameters:
frictionBreakoutthe breakout friction.
void gameplay::PhysicsVehicleWheel::setRollInfluence ( float  rollInfluence)

Sets roll influence which determines how side friction affects chassis roll.

Parameters:
rollInfluenceroll influence, normalized factor.

Sets whether this wheel is steerable.

Parameters:
steerabletrue if this wheel is steerable, false otherwise.
void gameplay::PhysicsVehicleWheel::setStrutConnectionOffset ( const Vector3 strutConnectionOffset)

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:
strutConnectionOffsetoffset from the default strut connection point.
void gameplay::PhysicsVehicleWheel::setStrutDampingCompression ( float  strutDampingCompression)

Sets strut damping under compression, normalized to chassis mass.

Parameters:
strutDampingCompressionstrut damping under compression, normalized to chassis mass.
void gameplay::PhysicsVehicleWheel::setStrutDampingRelaxation ( float  strutDampingRelaxation)

Sets strut damping under relaxation, normalized to chassis mass.

Parameters:
strutDampingRelaxationstrut damping under relaxation, normalized to chassis mass.
void gameplay::PhysicsVehicleWheel::setStrutForceMax ( float  strutForceMax)

Sets the maximum strut force.

Parameters:
strutForceMaxthe maximum strut force.
void gameplay::PhysicsVehicleWheel::setStrutRestLength ( float  strutRestLength)

Sets the strut rest length.

Parameters:
strutRestLengththe strut rest length.
void gameplay::PhysicsVehicleWheel::setStrutStiffness ( float  strutStiffness)

Sets the strut stiffness, normalized to chassis mass.

Parameters:
strutStiffnessthe strut stiffness, normalized to chassis mass.
void gameplay::PhysicsVehicleWheel::setStrutTravelMax ( float  strutTravelMax)

Sets the maximum strut travel.

Parameters:
strutTravelMaxthe maximum strut travel.

Sets direction of axle (the spin axis), in chassis space.

Parameters:
wheelAxledirection of axle (the spin axis).

Sets direction of strut extension, in chassis space.

Parameters:
wheelDirectiondirection of strut extension.
void gameplay::PhysicsVehicleWheel::setWheelRadius ( float  wheelRadius)

Sets the wheel radius.

Parameters:
wheelRadiusthe wheel radius.

Apply this wheel's world transform to the specified node. Useful for updating the specified visual node with the current transform.

Parameters:
nodethe node to be transformed; (typically a visual representation of this wheel).
 All Classes Functions Variables Typedefs Enumerations Enumerator