Car behaviour class. Manages car behaviour in the race. This class is in charge of the particles emitted by the car, the smoke, sounds and moving parts. It depends on a CarController class to get data like speed or steering info
More...
Car behaviour class. Manages car behaviour in the race. This class is in charge of the particles emitted by the car, the smoke, sounds and moving parts. It depends on a CarController class to get data like speed or steering info
◆ CarBodyRoll()
virtual void MoreMountains.HighroadEngine.CarBehaviour.CarBodyRoll |
( |
| ) |
|
|
protectedvirtual |
Manages the car's body roll
◆ EmitRocks()
virtual void MoreMountains.HighroadEngine.CarBehaviour.EmitRocks |
( |
| ) |
|
|
protectedvirtual |
◆ ManageSounds()
virtual void MoreMountains.HighroadEngine.CarBehaviour.ManageSounds |
( |
| ) |
|
|
protectedvirtual |
◆ OnCollisionEnter()
virtual void MoreMountains.HighroadEngine.CarBehaviour.OnCollisionEnter |
( |
Collision |
collision | ) |
|
|
protectedvirtual |
Used to play crash sound when colliding
- Parameters
-
◆ OnDestroy()
virtual void MoreMountains.HighroadEngine.CarBehaviour.OnDestroy |
( |
| ) |
|
|
protectedvirtual |
We remove the engine sound at the end of the game.
◆ SkidMarks()
virtual void MoreMountains.HighroadEngine.CarBehaviour.SkidMarks |
( |
| ) |
|
|
protectedvirtual |
Handles skid marks when the vehicle is steering enough
◆ SmokeControl()
virtual void MoreMountains.HighroadEngine.CarBehaviour.SmokeControl |
( |
| ) |
|
|
protectedvirtual |
Controls the smoke effets
◆ Start()
virtual void MoreMountains.HighroadEngine.CarBehaviour.Start |
( |
| ) |
|
|
protectedvirtual |
◆ TurnWheels()
virtual void MoreMountains.HighroadEngine.CarBehaviour.TurnWheels |
( |
| ) |
|
|
protectedvirtual |
◆ Update()
virtual void MoreMountains.HighroadEngine.CarBehaviour.Update |
( |
| ) |
|
|
protectedvirtual |
On Update, we make our car's body roll, turn its wheels and handle effects
◆ _carController
CarController MoreMountains.HighroadEngine.CarBehaviour._carController |
|
protected |
◆ _engineSound
AudioSource MoreMountains.HighroadEngine.CarBehaviour._engineSound |
|
protected |
◆ _engineSoundPitch
float MoreMountains.HighroadEngine.CarBehaviour._engineSoundPitch |
|
protected |
◆ _leftSmokeShape
ParticleSystem.ShapeModule MoreMountains.HighroadEngine.CarBehaviour._leftSmokeShape |
|
protected |
◆ _rightSmokeShape
ParticleSystem.ShapeModule MoreMountains.HighroadEngine.CarBehaviour._rightSmokeShape |
|
protected |
◆ _rocksLeftEmission
ParticleSystem.EmissionModule MoreMountains.HighroadEngine.CarBehaviour._rocksLeftEmission |
|
protected |
◆ _rocksRightEmission
ParticleSystem.EmissionModule MoreMountains.HighroadEngine.CarBehaviour._rocksRightEmission |
|
protected |
◆ _skidmarksLeft
GameObject MoreMountains.HighroadEngine.CarBehaviour._skidmarksLeft |
|
protected |
◆ _skidmarksRight
GameObject MoreMountains.HighroadEngine.CarBehaviour._skidmarksRight |
|
protected |
◆ _smokeAngle
float MoreMountains.HighroadEngine.CarBehaviour._smokeAngle |
|
protected |
◆ _smokeLeftEmission
ParticleSystem.EmissionModule MoreMountains.HighroadEngine.CarBehaviour._smokeLeftEmission |
|
protected |
◆ _smokeRightEmission
ParticleSystem.EmissionModule MoreMountains.HighroadEngine.CarBehaviour._smokeRightEmission |
|
protected |
◆ _smokeStartSize
float MoreMountains.HighroadEngine.CarBehaviour._smokeStartSize |
|
protected |
◆ _soundManager
SoundManager MoreMountains.HighroadEngine.CarBehaviour._soundManager |
|
protected |
◆ _steeringBodyRollValue
float MoreMountains.HighroadEngine.CarBehaviour._steeringBodyRollValue |
|
protected |
◆ BackLeftWheel
GameObject MoreMountains.HighroadEngine.CarBehaviour.BackLeftWheel |
◆ BackRightWheel
GameObject MoreMountains.HighroadEngine.CarBehaviour.BackRightWheel |
◆ CarBody
GameObject MoreMountains.HighroadEngine.CarBehaviour.CarBody |
◆ CrashSound
AudioClip MoreMountains.HighroadEngine.CarBehaviour.CrashSound |
◆ EmitRocksOnlyOffRoad
bool MoreMountains.HighroadEngine.CarBehaviour.EmitRocksOnlyOffRoad = false |
◆ EngineSound
AudioClip MoreMountains.HighroadEngine.CarBehaviour.EngineSound |
◆ FrontLeftWheel
GameObject MoreMountains.HighroadEngine.CarBehaviour.FrontLeftWheel |
◆ FrontRightWheel
GameObject MoreMountains.HighroadEngine.CarBehaviour.FrontRightWheel |
◆ MaximumCarBodyRollAngle
float MoreMountains.HighroadEngine.CarBehaviour.MaximumCarBodyRollAngle = 12f |
◆ MaximumWheelSteeringAngle
float MoreMountains.HighroadEngine.CarBehaviour.MaximumWheelSteeringAngle = 30f |
◆ MinimalCrashSpeed
int MoreMountains.HighroadEngine.CarBehaviour.MinimalCrashSpeed = 2 |
◆ RocksLeft
ParticleSystem MoreMountains.HighroadEngine.CarBehaviour.RocksLeft |
◆ RocksRight
ParticleSystem MoreMountains.HighroadEngine.CarBehaviour.RocksRight |
◆ SmokeLeft
ParticleSystem MoreMountains.HighroadEngine.CarBehaviour.SmokeLeft |
◆ SmokeRight
ParticleSystem MoreMountains.HighroadEngine.CarBehaviour.SmokeRight |
◆ SmokesMultiplier
float MoreMountains.HighroadEngine.CarBehaviour.SmokesMultiplier = 2f |
◆ StartsEmittingRocksAt
float MoreMountains.HighroadEngine.CarBehaviour.StartsEmittingRocksAt = 0.6f |
◆ StartsLeavingSkidmarksAt
float MoreMountains.HighroadEngine.CarBehaviour.StartsLeavingSkidmarksAt = 0.8f |
The documentation for this class was generated from the following file:
- E:/Github/Store/HighroadEngine/Assets/HighroadEngine/Demos/TinyCars/Scripts/CarBehaviour.cs