![]() |
FCV Engine 0.1
A tool and framework for tutorials in game development
|
Component that controls the movement of an object with a RigidBody2D. More...
Private Member Functions | |
void | CheckInputs () |
Checks for all inputs and assigns values based on the pressed key. | |
void | Run () |
Calculates the targeted speed and applies it over time using rigidbody2D. | |
void | Jump () |
Applies a force upward to simulate a jump. | |
void | GravityScaling () |
Scales gravity so that the player has higher gravity when falling compared to jumping. | |
void | SetAnimation () |
Sets the animations of the player. | |
bool | CanJump () |
Checks if all conditions for player jump is met. | |
void | Flip () |
Flips sprite depending on direction of movement inputs. | |
Component that controls the movement of an object with a RigidBody2D.
Definition at line 10 of file Movement.cs.
|
private |
Checks if all conditions for player jump is met.
Definition at line 180 of file Movement.cs.