I would like to adjust an orbit relative to a solid surface

Order by:
Duplicate Topic
Posts
Views
Last Post
0 favourites
  • 2 posts
  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can make the main object with Orbit behavior invisible and allow it to go through the ground. Add another (visible) sprite and set its position on every tick to: X=Main.X, Y=min(Main.Y, Ground.bBoxTop)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)