Skip to main content

reanchor_origin

Function reanchor_origin 

Source
pub fn reanchor_origin(
    current: &FloatingOriginFrame,
    step_delta_m: [f64; 3],
    sector_radius_m: f64,
) -> FloatingOriginFrame
Expand description

Advance a FloatingOriginFrame by step_delta_m within a sector of radius sector_radius_m.

Automatically transitions the entity to the adjacent healpix_index / octree_cell and resets local_origin_m to (0.0, 0.0, 0.0) when crossing a sector boundary.