C# 클래스 JitterDemo.Wheel

A wheel which adds drive forces to a body. Can be used to create a vehicle.
파일 보기 프로젝트 열기: tpb3d/TPB3D

공개 메소드들

메소드 설명
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