User Tools

Site Tools


en:examples:objects:object_get_set_rotation

Get and Set Rotation on an Object

orxOBJECT *heroObject = orxObject_CreateFromConfig("HeroObject");
 
orxFLOAT rotation = orxObject_GetRotation(heroObject);
rotation += 10;
 
orxObject_SetRotation(heroObject, rotation);
en/examples/objects/object_get_set_rotation.txt · Last modified: 2018/02/14 00:47 (7 years ago) by 127.0.0.1