Component types provided by the transform plugin. Included automatically via .withPlugin(createTransformPlugin()).
.withPlugin(createTransformPlugin())
const ecs = ECSpresso.create() .withPlugin(createTransformPlugin()) .withComponentTypes<{ sprite: Sprite; velocity: { x: number; y: number } }>() .build(); Copy
const ecs = ECSpresso.create() .withPlugin(createTransformPlugin()) .withComponentTypes<{ sprite: Sprite; velocity: { x: number; y: number } }>() .build();
Component types provided by the transform plugin. Included automatically via
.withPlugin(createTransformPlugin()).Example