C# 클래스 CarController, racing_game

상속: MonoBehaviour
파일 보기 프로젝트 열기: Rarau/racing_game 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
brakePos float
brakingPower float
cDrag float
cRoll float
carMass float
centerOfMass Transform
currentGear int
currentSpeed float
differentialRatio float
driftAssist float
engineTorque float
gearRatio float
gearsRatio float[]
handBrake bool
maxGears int
maxSpeed float
maxTorque float
maximumSpeed int
peakTorque float
playerNumber int
rpm float
rpmMax float
rpmMin float
steeringAngle float
steeringSensitityCurve AnimationCurve
steeringSensitivity float
throttlePos float
torqueRPMCurve AnimationCurve[]
virtualRPM float
wheels WheelController[]

공개 메소드들

메소드 설명
FixedUpdate ( ) : void
GearsShift ( ) : void

Shifts gear up or down according to speed.

IsFlying ( ) : bool
OnCollisionEnter ( Collision other ) : void

Collission handler

OnDrawGizmos ( ) : void
OnGUI ( ) : void
SetEnableMotion ( bool enable ) : void
Start ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
GetMaxTorque ( float currentRPM ) : float

Sample the RPM vs torque engine curve to get the torque for the current RPM value

메소드 상세

FixedUpdate() 공개 메소드

public FixedUpdate ( ) : void
리턴 void

GearsShift() 공개 메소드

Shifts gear up or down according to speed.
public GearsShift ( ) : void
리턴 void

IsFlying() 공개 메소드

public IsFlying ( ) : bool
리턴 bool

OnCollisionEnter() 공개 메소드

Collission handler
public OnCollisionEnter ( Collision other ) : void
other Collision
리턴 void

OnDrawGizmos() 공개 메소드

public OnDrawGizmos ( ) : void
리턴 void

OnGUI() 공개 메소드

public OnGUI ( ) : void
리턴 void

SetEnableMotion() 공개 메소드

public SetEnableMotion ( bool enable ) : void
enable bool
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

brakePos 공개적으로 프로퍼티

public float brakePos
리턴 float

brakingPower 공개적으로 프로퍼티

public float brakingPower
리턴 float

cDrag 공개적으로 프로퍼티

public float cDrag
리턴 float

cRoll 공개적으로 프로퍼티

public float cRoll
리턴 float

carMass 공개적으로 프로퍼티

public float carMass
리턴 float

centerOfMass 공개적으로 프로퍼티

public Transform centerOfMass
리턴 Transform

currentGear 공개적으로 프로퍼티

public int currentGear
리턴 int

currentSpeed 공개적으로 프로퍼티

public float currentSpeed
리턴 float

differentialRatio 공개적으로 프로퍼티

public float differentialRatio
리턴 float

driftAssist 공개적으로 프로퍼티

public float driftAssist
리턴 float

engineTorque 공개적으로 프로퍼티

public float engineTorque
리턴 float

gearRatio 공개적으로 프로퍼티

public float gearRatio
리턴 float

gearsRatio 공개적으로 프로퍼티

public float[] gearsRatio
리턴 float[]

handBrake 공개적으로 프로퍼티

public bool handBrake
리턴 bool

maxGears 공개적으로 프로퍼티

public int maxGears
리턴 int

maxSpeed 공개적으로 프로퍼티

public float maxSpeed
리턴 float

maxTorque 공개적으로 프로퍼티

public float maxTorque
리턴 float

maximumSpeed 공개적으로 프로퍼티

public int maximumSpeed
리턴 int

peakTorque 공개적으로 프로퍼티

public float peakTorque
리턴 float

playerNumber 공개적으로 프로퍼티

public int playerNumber
리턴 int

rpm 공개적으로 프로퍼티

public float rpm
리턴 float

rpmMax 공개적으로 프로퍼티

public float rpmMax
리턴 float

rpmMin 공개적으로 프로퍼티

public float rpmMin
리턴 float

steeringAngle 공개적으로 프로퍼티

public float steeringAngle
리턴 float

steeringSensitityCurve 공개적으로 프로퍼티

public AnimationCurve steeringSensitityCurve
리턴 AnimationCurve

steeringSensitivity 공개적으로 프로퍼티

public float steeringSensitivity
리턴 float

throttlePos 공개적으로 프로퍼티

public float throttlePos
리턴 float

torqueRPMCurve 공개적으로 프로퍼티

public AnimationCurve[] torqueRPMCurve
리턴 AnimationCurve[]

virtualRPM 공개적으로 프로퍼티

public float virtualRPM
리턴 float

wheels 공개적으로 프로퍼티

public WheelController[] wheels
리턴 WheelController[]