Skip to main content

ss_player_set_transform

Function ss_player_set_transform 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_player_set_transform( handle: *mut SsPlayer, x: f32, y: f32, scale_x: f32, scale_y: f32, rotation: f32, )
Expand description

Place this player in its scene: translation in pixels from the centre, scale, then rotation in radians.

y is measured downward from the centre, matching the Y-down space the players and ss_player_part_transform live in.

Without this every player sits at the origin, on top of the others.

ยงSafety

handle must be a live handle or null.