<div align="center">
---
š¦ PhysX Package for Milk.
``
import { setupPhysx, PhysXPhysicsSystem, PhysXBody, PhysXBox } from '@milk-ecs/physx';
// Ensure to run setupPhysx before starting the engine (loads WASM)
setupPhysx().then(() => {
new Engine();
});
// Add the PhysX system
engine.addSystem(new PhysXPhysicsSystem());
// Creating a simple box
const entity = new Entity();
entity.add(Transform);
entity.add(PhysXBody);
entity.add(PhysXBox, {
size: Vector3.Equal(1 / 2)
});
`
1. Use the Profile build of PhysX setupPhysx('profile')new PhysXPhysicsSystem(gravity, 1, true)
2. Enable debugger in the system _(also reccomend using a low substep)_websockify 8090 127.0.0.1:5425`
3. Create a Websocket -> TCP proxy via