Create a 3D transform plugin for ECSpresso.
This plugin provides:
Optional
const ecs = ECSpresso.create() .withPlugin(createTransform3DPlugin()) .withComponentTypes<{ velocity: { x: number; y: number; z: number } }>() .build();ecs.spawn({ ...createTransform3D(10, 5, -20), velocity: { x: 1, y: 0, z: 0 },}); Copy
const ecs = ECSpresso.create() .withPlugin(createTransform3DPlugin()) .withComponentTypes<{ velocity: { x: number; y: number; z: number } }>() .build();ecs.spawn({ ...createTransform3D(10, 5, -20), velocity: { x: 1, y: 0, z: 0 },});
Create a 3D transform plugin for ECSpresso.
This plugin provides: