Create a transform plugin for ECSpresso.
This plugin provides:
Optional
const ecs = ECSpresso .create<Components, Events, Resources>() .withPlugin(createTransformPlugin()) .withPlugin(createPhysics2DPlugin()) .build();// Spawn entity with transformecs.spawn({ ...createTransform(100, 200), velocity: { x: 50, y: 0 },}); Copy
const ecs = ECSpresso .create<Components, Events, Resources>() .withPlugin(createTransformPlugin()) .withPlugin(createPhysics2DPlugin()) .build();// Spawn entity with transformecs.spawn({ ...createTransform(100, 200), velocity: { x: 50, y: 0 },});
Create a transform plugin for ECSpresso.
This plugin provides: