Skip to main content

sample_vec2

Function sample_vec2 

Source
pub fn sample_vec2(
    animation: &Animated<Vec2>,
    time: MediaTime,
    context: &SampleContext<'_>,
) -> Vec2
Expand description

Samples an animated 2D value like sample_scalar. Use sample_point for positions that may follow spatial curves.