Hello fellow devs, I’m having a little issue with AWPBvhTriangleMeshShape. when I add a AWPRigidBody with a Bvh shape it causes a few frames to drop while being added, is there a way to pre-calculate say on a background worker like I do my mesh geometry creation, or can I move all the physics stuff to its own worker and just send update to my kinematic controller via a MessageChannel?
my script currently runs on two threads. the main thread handles input, away3d and physics, and the background thread to create geometry and sends to back to the main thread once calculated. using this method I was able to save most of the frame drop caused geometry creation,
So basically could I run awayphysics on its own thread? or calculate rigid bodies on a seperate thread?
var shape:AWPBvhTriangleMeshShape = new AWPBvhTriangleMeshShape(geo);
var rigidBody:AWPRigidBody = new AWPRigidBody(shape, mesh, 0);
rigidBody.transform = mesh.transform;