CharacterMovement is a very basic character class, used only to demonstrate how to bind the various controls to a character.
More...
Inherits MonoBehaviour.
|
virtual void | Move (Vector2 newMovement) |
| Sets the character's horizontal and vertical movement based on what's passed as a parameter More...
|
|
virtual void | SetHorizontalAxis (float value) |
| Sets the character's horizontal movement More...
|
|
virtual void | SetVerticalAxis (float value) |
| Sets the character's vertical movement More...
|
|
virtual void | Jump () |
| Makes the character jump More...
|
|
|
virtual void | Start () |
| On Start, we get the character's rigidbody More...
|
|
virtual void | Update () |
| On Update, we move the character based on what's been input More...
|
|
CharacterMovement is a very basic character class, used only to demonstrate how to bind the various controls to a character.
◆ Jump()
virtual void MoreMountains.NiceTouch.CharacterMovement.Jump |
( |
| ) |
|
|
virtual |
◆ Move()
virtual void MoreMountains.NiceTouch.CharacterMovement.Move |
( |
Vector2 |
newMovement | ) |
|
|
virtual |
Sets the character's horizontal and vertical movement based on what's passed as a parameter
- Parameters
-
◆ SetHorizontalAxis()
virtual void MoreMountains.NiceTouch.CharacterMovement.SetHorizontalAxis |
( |
float |
value | ) |
|
|
virtual |
Sets the character's horizontal movement
- Parameters
-
◆ SetVerticalAxis()
virtual void MoreMountains.NiceTouch.CharacterMovement.SetVerticalAxis |
( |
float |
value | ) |
|
|
virtual |
Sets the character's vertical movement
- Parameters
-
◆ Start()
virtual void MoreMountains.NiceTouch.CharacterMovement.Start |
( |
| ) |
|
|
protectedvirtual |
On Start, we get the character's rigidbody
◆ Update()
virtual void MoreMountains.NiceTouch.CharacterMovement.Update |
( |
| ) |
|
|
protectedvirtual |
On Update, we move the character based on what's been input
◆ _axisBased
bool MoreMountains.NiceTouch.CharacterMovement._axisBased =false |
|
protected |
◆ _horizontalMovement
float MoreMountains.NiceTouch.CharacterMovement._horizontalMovement |
|
protected |
◆ _rigidbody
Rigidbody MoreMountains.NiceTouch.CharacterMovement._rigidbody |
|
protected |
◆ _verticalMovement
float MoreMountains.NiceTouch.CharacterMovement._verticalMovement |
|
protected |
◆ JumpForce
float MoreMountains.NiceTouch.CharacterMovement.JumpForce = 100f |
the force applied when jumping
◆ MaximumSpeed
float MoreMountains.NiceTouch.CharacterMovement.MaximumSpeed = 20f |
the character's maximum speed
◆ Speed
float MoreMountains.NiceTouch.CharacterMovement.Speed = 50f |
The Speed of the character.
The documentation for this class was generated from the following file:
- E:/Github/Store/NiceTouchStore/Assets/NiceTouch/Demos/CubeCylinderSphere/Scripts/CharacterMovement.cs