Sun, 01 Jun 2025 14:33:58 +0200
rename parameters of asc_set_rotation()
src/ascension/scene_node.h | file | annotate | diff | comparison | revisions |
--- a/src/ascension/scene_node.h Sun Jun 01 14:28:30 2025 +0200 +++ b/src/ascension/scene_node.h Sun Jun 01 14:33:58 2025 +0200 @@ -200,10 +200,10 @@ return asc_vec2i_new(node->position.x, node->position.y); } -ASC_TRANFORM_FUNC void asc_set_rotation(AscSceneNode *node, float x, float y, float z) { - node->rotation.x = x; - node->rotation.y = y; - node->rotation.z = z; +ASC_TRANFORM_FUNC void asc_set_rotation(AscSceneNode *node, float pitch, float yaw, float roll) { + node->rotation.pitch = pitch; + node->rotation.yaw = yaw; + node->rotation.roll = roll; asc_clear_flag(node->flags, ASC_SCENE_NODE_CUSTOM_TRANSFORM); asc_node_update_transform(node); }