Urho3D’s current implementation of RigidBody has a mechanism to offset the center of mass for models whose origin does not coincide with the center of mass.
But it is private, and read-only!
There is a GetCenterOfMass method, but no SetCenterOfMass method.
It would be useful for me to be able to set that variable without having to hack the motionstate.
I have a model of a barrel, its origin is in the middle of one of the two endcaps.
When I apply a cylinder shaped rigidbody to it, the center of mass is at the origin of the model, which is completely wrong and leads to unexpected physical behavior. I shouldn’t have to edit the model to make the origin coincide with the center of mass!