How do i do a gravitation simulation with n-bodies?

I would like to do something like this guy did in unity, but in jmonkey engine: How to Simulate Gravity in Unity - YouTube. His code is in a link in the description. Can someone tell me how I do it here?

you can do the same thing here just lowercase the functions names.:stuck_out_tongue:
for unity’s RigidBody class we have a similar one com.jme3.bullet.control.RigidBodyControl.
as for the math algorithm it the same thing.
of course, you would know all of that if you just read the wiki.
https://wiki.jmonkeyengine.org/jme3.html#tutorials-for-beginners

1 Like