Create a circle collider component.
Radius of the circle
Optional
X offset from entity position
Y offset from entity position
Component object suitable for spreading into spawn()
ecs.spawn({ ...createTransform(100, 200), ...createCircleCollider(25),}); Copy
ecs.spawn({ ...createTransform(100, 200), ...createCircleCollider(25),});
Create a circle collider component.