Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to simulate Planet gravity
#8
(27-10-2021, 11:18 AM)wushuaiqi Wrote: i want to know the box center position

That's neither the solver's position, nor the rope's position. That's the rope's center of mass.

To calculate the center of mass of a deformable object, simply do a mass-weighted average of all particle's positions. You have sample code for this in the scripting section of the manual: http://obi.virtualmethodstudio.com/manua...icles.html
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 josemendez - 27-10-2021, 11:22 AM
RE: How to simulate Planet gravity - by wushuaiqi - 27-10-2021, 11:26 AM