Calculate required rotation for object to face in camera direction
#1

I am trying to make a minigun object attached to a maverick follow wherever the pilot's camera is facing. I've tried using GetPlayerCameraVector, GetPlayerCamera, etc.. But I cannot figure out how to calculate the required xrot,yrot,and zrot to face wherever the camera is facing (like rhino and hose on firetruck).

Does anybody have any idea how to do this? Thanks.
Reply


Messages In This Thread
Calculate required rotation for object to face in camera direction - by Chaser98 - 14.12.2010, 21:46
Re: Calculate required rotation for object to face in camera direction - by Marcel - 14.12.2010, 21:47
Re: Calculate required rotation for object to face in camera direction - by Chaser98 - 14.12.2010, 22:02
Re: Calculate required rotation for object to face in camera direction - by iggy1 - 15.12.2010, 00:39

Forum Jump:


Users browsing this thread: 1 Guest(s)