CrystalSpace

Public API Reference

CS::Physics::iVehicleSteeringDevice Struct Reference

A steering device steers a given set of tires with a given maximum amount. More...

#include <ivaria/vehicle.h>

Inheritance diagram for CS::Physics::iVehicleSteeringDevice:

List of all members.

Public Member Functions

virtual void AddAffectedWheel (size_t index)=0
 Add a new wheel to be affected by this steering device.
virtual size_t GetAffectedWheel (size_t index) const =0
 Get the wheel affected by this steering device of the given index.
virtual size_t GetAffectedWheelCount () const =0
 Get the amount of wheels affected by this steering device.
virtual float GetMaximumSteering () const =0
 Get the maximum steering angle that can be applied by this device, in radian.
virtual void SetMaximumSteering (float angle)=0
 Set the maximum steering angle that can be applied by this device, in radian.

Detailed Description

A steering device steers a given set of tires with a given maximum amount.

Definition at line 256 of file vehicle.h.


Member Function Documentation

virtual void CS::Physics::iVehicleSteeringDevice::AddAffectedWheel ( size_t  index  )  [pure virtual]

Add a new wheel to be affected by this steering device.

index is the index of the wheel in the iVehicleFactory.

virtual size_t CS::Physics::iVehicleSteeringDevice::GetAffectedWheel ( size_t  index  )  const [pure virtual]

Get the wheel affected by this steering device of the given index.

The value returned is the index of the wheel in the iVehicleFactory.

virtual size_t CS::Physics::iVehicleSteeringDevice::GetAffectedWheelCount (  )  const [pure virtual]

Get the amount of wheels affected by this steering device.

virtual float CS::Physics::iVehicleSteeringDevice::GetMaximumSteering (  )  const [pure virtual]

Get the maximum steering angle that can be applied by this device, in radian.

The default value is 0.4f.

virtual void CS::Physics::iVehicleSteeringDevice::SetMaximumSteering ( float  angle  )  [pure virtual]

Set the maximum steering angle that can be applied by this device, in radian.

The default value is 0.4f.


The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1