User Tools

Site Tools


en:tutorials:cameras:fixing_camera_to_object

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:tutorials:cameras:fixing_camera_to_object [2019/01/14 18:39 (6 years ago)] sausageen:tutorials:cameras:fixing_camera_to_object [2022/12/06 13:39 (2 years ago)] (current) iarwain
Line 24: Line 24:
 ... ...
  
-  orxClock_Register(orxClock_FindFirst(orx2F(-1.0f), orxCLOCK_TYPE_CORE), Update, orxNULL, orxMODULE_ID_MAIN, orxCLOCK_PRIORITY_LOWER);+  orxClock_Register(orxClock_Get(orxCLOCK_KZ_CORE), Update, orxNULL, orxMODULE_ID_MAIN, orxCLOCK_PRIORITY_LOWER);
 ... ...
 </code> </code>
Line 30: Line 30:
 Please note the use of ''orxCLOCK_PRIORITY_LOWER'' instead of ''orxCLOCK_PRIORITY_NORMAL''. This mode ensures the camera is updated **//after//** all the objects which will ensure a rock solid lock. Please note the use of ''orxCLOCK_PRIORITY_LOWER'' instead of ''orxCLOCK_PRIORITY_NORMAL''. This mode ensures the camera is updated **//after//** all the objects which will ensure a rock solid lock.
  
 +A more simple method is to [[en:tutorials:cameras:fixing_camera_to_object_by_parenting|parent a camera to an object]].
en/tutorials/cameras/fixing_camera_to_object.1547519962.txt.gz · Last modified: 2019/01/14 22:39 (6 years ago) (external edit)