InterpolateCameraLookAt
#1

Hi,

How to change camera angle? i set InterpolateCameraLookAt coordinates same as InterpolateCameraPos, but camera view is not in that side what to do?
Reply
#2

You can use this filterscript: https://sampforum.blast.hk/showthread.php?tid=330879
Reply
#3

But that coordinates is using getplayerpos and getxyinfrontofplayer ..
Reply
#4

No, it doesn't use those functions. It uses the interpolate functions. Projects go into scriptfiles.
Reply
#5

I mean that i'am in server getting player pos calculating xyinfront and setcamerapos using that, too i need calculate lookat to look straight player facing angle.
Reply
#6

PHP код:
GetPointInFrontOfCamera3D(playerid,&Float:tx,&Float:ty,&Float:tz,Float:radius,&Float:rx=0.0,&Float:rz=0.0); 
3DTryg:
https://sampforum.blast.hk/showthread.php?tid=591010

Example:
PHP код:
new Float:tx,Float:ty,Float:tz;
GetPointInFrontOfCamera3D(playerid,tx,ty,tz5.0); //5 meters
SetPlayerCameraLookAt(playerid,tx,ty,tz,CAMERA_CUT); 
Reply
#7

Interpolate functions are to move the camera to one point to another.
Reply
#8

Reply
#9

Are your InterpolateCameraPos and InterpolateCameraLookAt final coordinates the same? Because your LookAt function should be the coordinates of where you 'want' the camera to be looking when it finishes moving. You've probably set the coordinates wrong for the LookAt function. Try moving the LookAt coordinates 100 units further ahead.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)