Question by
cdunstan · Feb 24, 2017 at 03:27 AM ·
2d game2d-physics2d rotation
2D player enter/exit orbit
Hello unity community,
I'm trying to figure out a way to make my player start orbiting an object when it collides with a trigger (a slightly bigger circle surrounding the object), and continue its orbit until pressing space, where it will exit the orbit at its current trajectory and speed.
Hopefully that makes sense, it's a simple concept, I'm just struggling with execution. Mainly, the ability to orbit to the left/right depending on how the player enters the trigger, and exiting orbit in the players current trajectory .
Any help would be much appreciated.
Comment