User Tools

Site Tools


en:examples:objects:object_get_set_rotation

This is an old revision of the document!


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.1518583665.txt.gz · Last modified: 2018/02/14 00:47 (7 years ago) (external edit)