C# Класс JitterDemo.Wheel

A wheel which adds drive forces to a body. Can be used to create a vehicle.
Показать файл Открыть проект

Открытые методы

Метод Описание
AddTorque ( float torque ) : void

Adds drivetorque.

GetWorldPosition ( ) : Jitter.LinearMath.JVector

Gets the position of the wheel in world space.

RemoveWheel ( ) : void
Wheel ( World world, RigidBody car, Jitter.LinearMath.JVector position, float radius ) : System

Creates a new instance of the Wheel class.

Приватные методы

Метод Описание
PostStep ( float timeStep ) : void
PreStep ( float timeStep ) : void
RaycastCallback ( RigidBody body, Jitter.LinearMath.JVector normal, float frac ) : bool

Описание методов

AddTorque() публичный Метод

Adds drivetorque.
public AddTorque ( float torque ) : void
torque float The amount of torque applied to this wheel.
Результат void

GetWorldPosition() публичный Метод

Gets the position of the wheel in world space.
public GetWorldPosition ( ) : Jitter.LinearMath.JVector
Результат Jitter.LinearMath.JVector

RemoveWheel() публичный Метод

public RemoveWheel ( ) : void
Результат void

Wheel() публичный Метод

Creates a new instance of the Wheel class.
public Wheel ( World world, RigidBody car, Jitter.LinearMath.JVector position, float radius ) : System
world Jitter.World The world.
car RigidBody The RigidBody on which to apply the wheel forces.
position Jitter.LinearMath.JVector The position of the wheel on the body (in body space).
radius float The wheel radius.
Результат System