|
Highroad Engine v1.3
|
Air Car controller class. Manages inputs from InputManager and driving of the hover car You can customize the properties for different types of vehicles. More...
Public Member Functions | |
| virtual void | FixedUpdate () |
| Fixed Update : physics controls More... | |
| virtual void | OnDrawGizmos () |
| Draws controller gizmos More... | |
Public Member Functions inherited from MoreMountains.HighroadEngine.BaseController | |
| virtual bool | HasJustFinished (int finalRankPosition) |
| Gets a value indicating whether this vehicle has just finished the race. This property will return true only once. More... | |
| virtual void | MainActionPressed () |
| Button Main Action is being pressed More... | |
| virtual void | MainActionDown () |
| Button Main Action is pressed down More... | |
| virtual void | MainActionReleased () |
| Button Main Action is released More... | |
| virtual void | AltActionPressed () |
| Button Alt Action is being pressed More... | |
| virtual void | AltActionDown () |
| Button Alt Action is pressed down More... | |
| virtual void | AltActionReleased () |
| Button Alt Action is released More... | |
| virtual void | RespawnActionPressed () |
| Button Respawn Action is being pressed More... | |
| virtual void | RespawnActionDown () |
| Button Respawn Action is pressed down More... | |
| virtual void | RespawnActionReleased () |
| Button Respawn Action is released More... | |
| virtual void | LeftPressed () |
| Button Left is being pressed More... | |
| virtual void | RightPressed () |
| Button Right is being pressed More... | |
| virtual void | UpPressed () |
| Button Up is being pressed More... | |
| virtual void | DownPressed () |
| Button Down is being pressed More... | |
| virtual void | MobileJoystickPosition (Vector2 value) |
| Update of the mobile joystick position More... | |
| virtual void | HorizontalPosition (float value) |
| Update of the horizontal value (from -1 to 1) More... | |
| virtual void | VerticalPosition (float value) |
| Update of the vertical value (from -1 to 1) More... | |
| virtual void | LeftReleased () |
| Button Left is released More... | |
| virtual void | RightReleased () |
| Button Right is released More... | |
| virtual void | UpReleased () |
| Button Up is released More... | |
| virtual void | DownReleased () |
| Button Down is released More... | |
| virtual void | Respawn () |
| This method triggers the respawn of the vehicle to its last checkpoint More... | |
| virtual void | OnTriggerEnter (Collider other) |
| Describes what happens when the object starts colliding with something Used for checkpoint interaction More... | |
| virtual void | OnTriggerStay (Collider other) |
| Describes what happens when something is colliding with our object Used to apply a boost force to the vehicle while staying in a boost zone. More... | |
| virtual void | OnTriggerExit (Collider other) |
| Describes what happens when the collision ends Removes "boost" state when the vehicle exits a boost zone More... | |
| virtual void | EnableControls (int controllerId) |
| Enables the controls. More... | |
| virtual void | DisableControls () |
| Disables the controls. More... | |
Public Attributes | |
| int | EnginePower = 100 |
| the engine's power More... | |
| float | LateralSteeringForce = 1f |
| Lateral force applied when steering. More... | |
| int | MaxSpeed = 100 |
| the maximum speed More... | |
| float | HoverHeight = 1f |
| the distance from the ground at which the vehicle hovers More... | |
| float | HoverGravityForce = 1f |
| the force that pushes the vehicle towards the ground More... | |
| float | HoverForce = 1f |
| the force that pushes the vehicle in the air More... | |
| float | OrientationGroundSpeed = 10f |
Public Attributes inherited from MoreMountains.HighroadEngine.BaseController | |
| float | BoostForce = 1f |
| the force applied when the vehicle is in a boost zone More... | |
| float | RigidBodyDragInLoop = 1f |
| The temporary value of rigidbody.drag when the vehicle is inside a loop zone. This allows for better movement inside the loop. More... | |
| float | SteeringSpeed = 100f |
| the speed at which the car steers More... | |
| bool | AutoForward = false |
| Set this to true if you want the vehicle to accelerate forever. More... | |
Protected Member Functions | |
| virtual void | Accelerate () |
| Manages the acceleration of the vehicle More... | |
| virtual void | Rotation () |
| Rotation of the vehicle using steering input More... | |
| virtual void | Hover () |
| Management of the hover and gravity of the vehicle More... | |
| virtual void | OrientationToGround () |
| Manages orientation of the vehicle depending ground surface normale More... | |
Protected Member Functions inherited from MoreMountains.HighroadEngine.BaseController | |
| virtual void | Awake () |
| Initializes various references More... | |
| virtual void | Start () |
| Initializes checkpoints More... | |
Protected Attributes | |
| RaycastHit | _groundRaycastHit |
Protected Attributes inherited from MoreMountains.HighroadEngine.BaseController | |
| Rigidbody | _rigidbody |
| Collider | _collider |
| RaceManager | _raceManager |
| Transform[] | _checkpoints |
| int | _currentWaypoint = 0 |
| int | _lastWaypointCrossed = -1 |
| float | _defaultDrag |
| int | _controllerId = -1 |
| int | _finisherPosition = 0 |
| αΊ€hen > 0, vehicle has finished the race. This is it final rank. More... | |
| float | _currentGasPedalAmount |
Additional Inherited Members | |
Protected Types inherited from MoreMountains.HighroadEngine.BaseController | |
| enum | Zones { SpeedBoost , JumpBoost , LoopZone } |
Properties inherited from MoreMountains.HighroadEngine.BaseController | |
| int | CurrentLap [getprotected set] |
| Returns the current lap. More... | |
| float | CurrentSteeringAmount [getset] |
| Gets or sets the current steering amount from -1 (full left) to 1 (full right). 0 when none. More... | |
| float? | CurrentGasPedalAmount [getset] |
| Gets or sets the current gas pedal amount. 1 for full acceleration. -1 for full brake or reverse. 0 for nothing. More... | |
| virtual bool | IsPlaying [getprotected set] |
| Gets or sets a value indicating whether this user is playing. More... | |
| virtual bool | IsGrounded [getprotected set] |
| Gets or sets a value indicating whether this instance is grounded. More... | |
| virtual bool | IsOnSpeedBoost [getprotected set] |
| Gets or sets a value indicating whether this instance is on speed boost. More... | |
| virtual float | Speed [get] |
| Gets the vehicle speed. More... | |
| virtual int | Score [get] |
| Gets the player score. More... | |
| virtual float | DistanceToNextWaypoint [get] |
| Gets the distance to the next waypoint. More... | |
| int | FinalRank [get] |
| Gets the final rank. 0 if vehicle has not ended. More... | |
Air Car controller class. Manages inputs from InputManager and driving of the hover car You can customize the properties for different types of vehicles.
|
protectedvirtual |
Manages the acceleration of the vehicle
|
virtual |
Fixed Update : physics controls
|
protectedvirtual |
Management of the hover and gravity of the vehicle
|
virtual |
Draws controller gizmos
|
protectedvirtual |
Manages orientation of the vehicle depending ground surface normale
|
protectedvirtual |
Rotation of the vehicle using steering input
|
protected |
| int MoreMountains.HighroadEngine.AirCarController.EnginePower = 100 |
the engine's power
| float MoreMountains.HighroadEngine.AirCarController.HoverForce = 1f |
the force that pushes the vehicle in the air
| float MoreMountains.HighroadEngine.AirCarController.HoverGravityForce = 1f |
the force that pushes the vehicle towards the ground
| float MoreMountains.HighroadEngine.AirCarController.HoverHeight = 1f |
the distance from the ground at which the vehicle hovers
| float MoreMountains.HighroadEngine.AirCarController.LateralSteeringForce = 1f |
Lateral force applied when steering.
| int MoreMountains.HighroadEngine.AirCarController.MaxSpeed = 100 |
the maximum speed
| float MoreMountains.HighroadEngine.AirCarController.OrientationGroundSpeed = 10f |