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


#1

I would like to do something like this guy did in unity, but in jmonkey engine: https://www.youtube.com/watch?v=Ouu3D_VHx9o&t=10s. His code is in a link in the description. Can someone tell me how I do it here?


#2

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