Skip to main content

ActorFrame

Function ActorFrame 

Source
pub fn ActorFrame(
    center: [f32; 2],
    size: [f32; 2],
    geom: GeomHandle,
    mirror_x: bool,
    child: View,
) -> View
Expand description

World-anchored surface: child is boxed to a size rect centered on a world center, positioned through FrameGeom. mirror_x flips about the surface center (rozvp horde case: centered content). Offsets trail the board by one frame under camera motion; steady state matches. For origin-bearing art (NT sprites with off-center xorigin/yorigin), prefer ActorFrameWithOrigin or the sprite batch’s anchor flips, which mirror about the anchor instead.