Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to simulate Planet gravity
#1
Triste 
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
Reply


Messages In This Thread
How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 10:28 AM
RE: How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 10:52 AM
RE: How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 11:15 AM
RE: How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 11:18 AM
RE: How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 11:26 AM