Skip to content

API Type QueryShape2D

github-actions[bot] edited this page Nov 24, 2026 · 3 revisions

Type Alias: QueryShape2D

type QueryShape2D = 
  | {
  kind: "circle";
  radius: number;
}
  | {
  halfExtents: PhysicsVec2;
  kind: "box";
}
  | {
  halfHeight: number;
  kind: "capsule";
  radius: number;
};

Defined in: src/plugins/physics/runtime/backend.ts:67

Shapes for casts and overlap queries.

Clone this wiki locally