Anyone know how to write a routine that will check if an entity is facing the camera or not? Probably would look like;
IsFacingCam(Camera,Entity,FacingRange)
Facing Range would be a degree range that it would consider the front of the entity. Example: 90 would cover the intire front of the entity. It would check if the camera is within a -90 to 90 on the Pitch,Yaw,and Roll relative to the entity in question. I'm not sure if Roll could even be in this.
I hope this makes sense.
Any ideas?
IsFacingCam(Camera,Entity,FacingRange)
Facing Range would be a degree range that it would consider the front of the entity. Example: 90 would cover the intire front of the entity. It would check if the camera is within a -90 to 90 on the Pitch,Yaw,and Roll relative to the entity in question. I'm not sure if Roll could even be in this.
I hope this makes sense.
Any ideas?