functiongenerated
Physics.cast_box
Like cast_circle, for a box half_size from its centre to each edge, turned by rotation radians.
Signature
Physics.cast_box(origin: Vec2, half_size: Vec2, rotation: 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