Download

Expose more physics-related functions

I’ve got a section in my game where I need to calculate the moment of inertia around an axis. Unfortunately, while getMass() is exposed to blueprints, moment-of-inertia isn’t. In theory I’d need getMassSpaceInertiaTensor and getCMassLocalPose to be exposed, but the latter is a complicated thing that returns a PxVec3 and a PxQuat, so it may not be practical to return into the Blueprint environment, which doesn’t seem to have a way of exposing quaternions at all.

I’m actually not sure what the “right” solution here is - it may be that it’s too niche to be included in a default interface - but I thought I’d mention that it’s desired, at least for me :slight_smile: