How to find Center of Mass?

This is excellent and simple. I’ve been trying to add torques to a rather complex mesh this past week with non-promising results because of the slight difference between GetComponentLocation() and GetBodyInstance()->GetCOMPosition(). Mush simpler than calling some weird PhysX transform calls. Thanks for this.