0
$\begingroup$

I am creating a gravity simulation where a an object is moving and is caught by another object and goes into orbit around it. The problem is that since I am an absolute noob in the game engine, I don't know how to give the object an initial velocity that allows it to go into orbit, rather than just colliding with the other object. Could someone help with that?

I have included a picture of the scene below. Sorry for being a noob. Thanks

enter image description here

$\endgroup$
1
$\begingroup$

You can add a force to the object by activating an motion actuator.

Ensure the actuator deactivates after applying the initial force (or velocity). enter image description here

When you are working with dynamically added objects it is even simpler. You can set up an initial velocity of the added object.

enter image description here

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.