How to change center of mass

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
parapoohda
Posts: 83
Joined: Fri May 31, 2019 6:30 am

How to change center of mass

Post by parapoohda » Sat Dec 14, 2019 11:15 am

I want to change center of mass.
Is compond object is only way to change center of mass?
Are there other way?
Thank you. :D

Norbo
Site Admin
Posts: 4833
Joined: Tue Jul 04, 2006 4:45 am

Re: How to change center of mass

Post by Norbo » Sat Dec 14, 2019 7:53 pm

Yup, right now, Compound is the right choice. Changing the center of mass is equivalent to offsetting the collidable, so rather than having a dedicated 'collidable offset' on everything I just let the Compound handle it. Notably, the Compound (as opposed to the BigCompound) has effectively no overhead for single shapes since it has no acceleration structure.

parapoohda
Posts: 83
Joined: Fri May 31, 2019 6:30 am

Re: How to change center of mass

Post by parapoohda » Tue Dec 17, 2019 9:44 am

Thank you.:3

Post Reply