Hyper Loop by Neblig
You are driving a cube in a loop... forever.
Move side to side with the [arrow keys] or [A,D] there are powerups to collect, but they do not react right now. Currently this is more of a "loop simulator" than a game.
| Youtube | https://cloudlight-games.itch.io/hyper-loop |
| Youtube | https://github.com/ben-gillott/LD47 |
| Original URL | https://ldjam.com/events/ludum-dare/47/hyper-loop |
Ratings
| Given | 0🗳️ | 0🗨️ |
As you said, it's a loop simulator... for now.
You should start by adding a new component to the player:

you want to have a (box) collider there, otherwise your **OnCollisionEnter(Collision collision)** method in the **MovementController.cs** will not be called ;)
...or instead implement the method in the **colliderController** class - as this is attached to the Cube (child object of Player). Only the object with the colliders will get the respective messages/callbacks.
see also https://docs.unity3d.com/ScriptReference/Collider.html :
> OnCollisionEnter is called when this collider/rigidbody has begun touching another rigidbody/collider.