Player Controller

How it works


The player controller handles all the movement and physics updates for the player to make sure that they don’t fall through the tile map level. The player controller is a very basic setup of how you would implement Collison and movement into the engine, and because unity’s collision system makes too much lag to be regenerated each time a new tile is created the tile engine is dependent on the custom collision system.

<aside> 💡 All physics related code must be handled in the FixedUpdate loop.

</aside>

Player Dependency’s


There are many scripts in the engine that require to access the player Game Object data.

Here are the current scripts which need to access the player game object: