Spherical planet physic?

Adanf
Posts: 1
Joined: Wed Feb 20, 2013 12:55 pm

Spherical planet physic?

Post by Adanf »

Hi guys, i have an important question:
Bullet engine support planet gravity as a spherical force?

Thanks all
Spaddlewit
Posts: 28
Joined: Fri Sep 04, 2009 8:23 pm

Re: Spherical planet physic?

Post by Spaddlewit »

Just set the gravity to each of your objects every tic like so:

objectGravity = normalize(planetCentroid - objectPosition) * gravityStrength