mini_arcade_core.spaces.collision.specs¶
Collision collider specifications.
Attributes¶
Classes¶
Simple collider specification. |
|
Rectangle collider specification. |
|
Circle collider specification. |
|
Line collider specification. |
|
Polygon collider specification. |
Module Contents¶
- mini_arcade_core.spaces.collision.specs.ColliderKind¶
- class mini_arcade_core.spaces.collision.specs.ColliderSpec¶
Simple collider specification.
- Variables:
kind – The kind of collider (rect, circle, poly, line).
- kind: ColliderKind¶
- class mini_arcade_core.spaces.collision.specs.RectColliderSpec¶
Bases:
ColliderSpecRectangle collider specification.
- Variables:
kind – The kind of collider (rect).
size – The size of the rectangle collider. If None, derived from transform.size.
- kind: Literal['rect'] = 'rect'¶
- size: mini_arcade_core.spaces.geometry.size.Size2D | None = None¶
- class mini_arcade_core.spaces.collision.specs.CircleColliderSpec¶
Bases:
ColliderSpecCircle collider specification.
- Variables:
kind – The kind of collider (circle).
radius – The radius of the circle collider. If None, derived from min(size)/2.
- kind: Literal['circle'] = 'circle'¶
- radius: float | None = None¶
- class mini_arcade_core.spaces.collision.specs.LineColliderSpec¶
Bases:
ColliderSpecLine collider specification.
- Variables:
kind – The kind of collider (line).
a – The start point of the line collider (local-space).
b – The end point of the line collider (local-space).
- kind: Literal['line'] = 'line'¶
- class mini_arcade_core.spaces.collision.specs.PolyColliderSpec¶
Bases:
ColliderSpecPolygon collider specification.
- Variables:
kind – The kind of collider (poly).
points – The points of the polygon collider (local-space).
- kind: Literal['poly'] = 'poly'¶
- points: tuple[mini_arcade_core.spaces.math.vec2.Vec2, Ellipsis] = ()¶