functiongenerated
Physics.cast_circle
Sweeps a circle from origin along direction and returns the first collider it would touch, as RayHit2d or null: a raycast with a size, for whether something fits through a gap. point is where they touch and distance how far the circle's centre travelled. Starting already overlapping gives distance 0 and normal Vec2(0, 0). The filter arguments are the raycast's.
Signature
Physics.cast_circle(origin: Vec2, radius: number, direction: Vec2, max_distance: number, mask: number, include_sensors: bool, exclude: Entity) -> RayHit2dMember of Physics
Related types
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b