Skip to main content

SatShape

Minimal convex shape description the separating axis test and contact clipping operate on.

PolygonCollider and EdgeCollider (as a two-sided, two point "polygon") both satisfy this.

Index

Properties

center

center: Vector

Center of the shape in world space

id

id: Id<collider>

normals

normals: readonly Vector[]

Outward normal for the side starting at each point, normals[i] belongs to side points[i] -> points[(i + 1) % length]

points

points: readonly Vector[]

Points in local space (relative to transform), in perimeter order

transform

transform: Transform

Transform from local space to world space

Page Options