Create a wrapAtBounds component.
Optional
Padding beyond bounds before wrapping
Component object suitable for spreading into spawn()
ecs.spawn({ ...createTransform(100, 200), ...createWrapAtBounds(10),}); Copy
ecs.spawn({ ...createTransform(100, 200), ...createWrapAtBounds(10),});
Create a wrapAtBounds component.