Interface ShapeCastQuery
interface ShapeCastQuery {
endPosition: Vec3;
ignoreBody?: PhysicsBody;
rotation: Quat;
shape: PhysicsShape;
shouldHitTriggers?: boolean;
startPosition: Vec3;
}
endPosition: Vec3;
ignoreBody?: PhysicsBody;
rotation: Quat;
shape: PhysicsShape;
shouldHitTriggers?: boolean;
startPosition: Vec3;
}
Index
Properties
end Position
World-space sweep end position.
Optionalignore Body
Body to exclude, such as the body whose own shape is being swept.
rotation
World-space orientation held constant during the sweep.
shape
Shape to sweep through the world.
Optionalshould Hit Triggers
shouldHitTriggers?: boolean
Whether trigger volumes count as hits. Default false.
start Position
World-space sweep start position.
Query parameters for shapeCast.