Skip to main content

shape_ray_cast

Function shape_ray_cast 

Source
pub fn shape_ray_cast(
    world: &World,
    shape_id: ShapeId,
    origin: Pos,
    translation: Vec3,
) -> WorldCastOutput
Expand description

World-space ray cast against a single shape. (b3Shape_RayCast)

Re-centers on origin so the cast runs in float precision far from the world origin, matching C.