public void AddActor(PhysXBody body) { if (scene == IntPtr.Zero) { preRegisteredBodies.Add(body); } else { body.Setup(); bodies.Add(body.physXBody.ToInt64(), body); PhysXLib.AddActorToScene(scene, body.physXBody); body.PostSceneInsertionSetup(); } }