ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


lookat

Differences

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

Link to this comparison view

Next revision
Previous revision
lookat [2018/01/08 01:17] – created korshunlookat [2018/01/08 01:23] (current) korshun
Line 1: Line 1:
 ====== LookAt ====== ====== LookAt ======
-  void LookAt(int tid, int target)+  
   void LookAtPoint(int tid, fixed x, fixed y, fixed z)   void LookAtPoint(int tid, fixed x, fixed y, fixed z)
 +
 +Rotates the actor so that it's looking at the point. Takes the actor's [[zdoom>GetActorViewHeight|ViewHeight]] into account.
 +
 +--------
 +
 +  void LookAt(int tid, int target_tid)
      
-Rotates the actor so that it's looking at another actor or point.+Rotates the actor so that it's looking at another actor. Takes into account both actors' [[zdoom>GetActorViewHeight|ViewHeights]] to make the actor look at the other actor's head, if the target actor has CameraHeight, or center, if it doesn't.
  
 +  
  
  
  
lookat.txt · Last modified: 2018/01/08 01:23 by korshun