Hello everyone,
I am currently working on a project that includes an object that uses the orbit behavior. My problem, though, is that the object's orbit sometimes will hit the ground. I would like the orbit to adjust itself relative to the ground so that it never goes through the ground.
Here's a visual representation of what I'm looking for. The orbit is shown in black, ground is shown in red. On collision with the ground, orbit doesn't go through the ground but goes along the green line instead.
Thank you very much in advance.