ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:hudsetcameraactoradvanced

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
functions:hudsetcameraactoradvanced [2017/04/17 20:12] korshunfunctions:hudsetcameraactoradvanced [2017/04/17 20:14] (current) korshun
Line 5: Line 5:
  
 ===== Description ===== ===== Description =====
-Sets [[:hud_library_state#camera_position|camera position]] and [[:hud_library_state#camera_direction|direction]] to match those of the specified actor. Advanced version of [[SetHudCameraActor]].+Sets [[:hud_library_state#camera_position|camera position]] and [[:hud_library_state#camera_direction|direction]] to match those of the specified actor. Advanced version of [[HudSetCameraActor]].
  
 Takes the following flags: Takes the following flags:
-  * HUD_CAMERAACTOR_NOPOSITION -- don'call [[HudSetCameraPosition]]. +  * HUD_CAMERAACTOR_NOPOSITION -- don'set [[:HUD Library state#camera_position|camera position]]. 
-  * HUD_CAMERAACTOR_NODIRECTION -- don'call [[HudSetCameraDirection]].+  * HUD_CAMERAACTOR_NODIRECTION -- don'set [[:HUD Library state#camera_position|camera direction]].
   * HUD_CAMERAACTOR_NOPREDICTION -- don't try to shift camera position based on actor velocity to minimize positioning artifacts caused by [[:35 fps]] rendering.   * HUD_CAMERAACTOR_NOPREDICTION -- don't try to shift camera position based on actor velocity to minimize positioning artifacts caused by [[:35 fps]] rendering.
   * HUD_CAMERAACTOR_NOVIEWHEIGHT -- don't take the actor's view height into account.   * HUD_CAMERAACTOR_NOVIEWHEIGHT -- don't take the actor's view height into account.
Line 15: Line 15:
 Use ''|'' operator to combine flags (e.g ''HUD_CAMERAACTOR_NOPREDICTION | HUD_CAMERAACTOR_NOVIEWHEIGHT''). Use ''|'' operator to combine flags (e.g ''HUD_CAMERAACTOR_NOPREDICTION | HUD_CAMERAACTOR_NOVIEWHEIGHT'').
  
-===== Examples ===== 
-<code> 
-while (IsPlaying()) 
-{ 
-    HudResetState(); 
-    HudSetCameraActor(0); 
-    Draw3DStuff(); 
-    Delay(1); 
-} 
-</code> 
  
functions/hudsetcameraactoradvanced.1492449155.txt.gz · Last modified: 2017/04/17 20:12 by korshun