C# 클래스 JitterDemo.DefaultCar

Creates the Jitter default car with 4 wheels. To create a custom car use the Wheel class and add it to a body.
상속: RigidBody
파일 보기 프로젝트 열기: tpb3d/TPB3D

공개 메소드들

메소드 설명
AdjustWheelValues ( ) : void

This recalculates the inertia, damping and spring of all wheels based on the car mass, the wheel radius and the gravity. Should be called after manipulating wheel data.

DefaultCar ( World world, Shape shape ) : System

Initializes a new instance of the DefaultCar class.

RemoveCar ( ) : void
SetInput ( float accelerate, float steer ) : void

Set input values for the car.

비공개 메소드들

메소드 설명
world_PostStep ( float timeStep ) : void

메소드 상세

AdjustWheelValues() 공개 메소드

This recalculates the inertia, damping and spring of all wheels based on the car mass, the wheel radius and the gravity. Should be called after manipulating wheel data.
public AdjustWheelValues ( ) : void
리턴 void

DefaultCar() 공개 메소드

Initializes a new instance of the DefaultCar class.
public DefaultCar ( World world, Shape shape ) : System
world Jitter.World The world the car should be in.
shape Jitter.Collision.Shapes.Shape The shape of the car. Recommend is a box shape.
리턴 System

RemoveCar() 공개 메소드

public RemoveCar ( ) : void
리턴 void

SetInput() 공개 메소드

Set input values for the car.
public SetInput ( float accelerate, float steer ) : void
accelerate float A value between -1 and 1 (other values get clamped). Adjust /// the maximum speed of the car by setting . The maximum acceleration is adjusted /// by setting .
steer float A value between -1 and 1 (other values get clamped). Adjust /// the maximum steer angle by setting . The speed of steering /// change is adjusted by .
리턴 void