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 08:47 (2 years ago) (external edit)