diff --git a/fission/src/test/PhysicsSystem.test.ts b/fission/src/test/PhysicsSystem.test.ts index 4f9459783..70e75ca96 100644 --- a/fission/src/test/PhysicsSystem.test.ts +++ b/fission/src/test/PhysicsSystem.test.ts @@ -54,7 +54,10 @@ describe("GodMode", () => { test("Basic", () => { const system = new PhysicsSystem() const box = system.CreateBox(new THREE.Vector3(1, 1, 1), 1, new THREE.Vector3(0, 0, 0), undefined) - const [ghostObject, ghostConstraint] = system.CreateGodModeBody(box.GetID(), JoltRVec3_JoltVec3(box.GetPosition())) + const [ghostObject, ghostConstraint] = system.CreateGodModeBody( + box.GetID(), + JoltRVec3_JoltVec3(box.GetPosition()) + ) assert(system.GetBody(ghostObject.GetID()) != undefined) assert(system.GetBody(box.GetID()) != undefined) diff --git a/fission/src/ui/panels/DebugPanel.tsx b/fission/src/ui/panels/DebugPanel.tsx index f35185377..c65b43282 100644 --- a/fission/src/ui/panels/DebugPanel.tsx +++ b/fission/src/ui/panels/DebugPanel.tsx @@ -39,7 +39,10 @@ async function TestGodMode() { return } const robotPosition = World.PhysicsSystem.GetBody(rootNodeId).GetPosition() - const [ghostBody, _ghostConstraint] = World.PhysicsSystem.CreateGodModeBody(rootNodeId, JoltRVec3_JoltVec3(robotPosition)) + const [ghostBody, _ghostConstraint] = World.PhysicsSystem.CreateGodModeBody( + rootNodeId, + JoltRVec3_JoltVec3(robotPosition) + ) // Move ghostBody to demonstrate godMode movement await new Promise(f => setTimeout(f, 1000)) diff --git a/fission/src/util/TypeConversions.ts b/fission/src/util/TypeConversions.ts index 5e1d4e6ca..5e275d9d0 100644 --- a/fission/src/util/TypeConversions.ts +++ b/fission/src/util/TypeConversions.ts @@ -80,7 +80,7 @@ export function JoltVec3_JoltRVec3(m: Jolt.Vec3): Jolt.RVec3 { } export function JoltRVec3_JoltVec3(m: Jolt.RVec3): Jolt.Vec3 { - return new JOLT.Vec3(m.GetX(), m.GetY(), m.GetZ()); + return new JOLT.Vec3(m.GetX(), m.GetY(), m.GetZ()) } export function MirabufTransform_ThreeMatrix4(m: mirabuf.ITransform): THREE.Matrix4 {