27-10-2021, 10:28 AM
hi I want to know how to simulate Planet gravity
my idea is
change gravity direction point to planet position in update()
The direction calculation formula is
Vector3 dir=(solver.position(box center)-planet.position).normalized
so i want to know how to get solver center position or gravity set position
Or there are other solutions
Thank you for your help
my idea is
change gravity direction point to planet position in update()
The direction calculation formula is
Vector3 dir=(solver.position(box center)-planet.position).normalized
so i want to know how to get solver center position or gravity set position
Or there are other solutions
Thank you for your help