using InterpolateCameraPos & InterpolateCameraLookAt - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: using InterpolateCameraPos & InterpolateCameraLookAt (
/showthread.php?tid=633834)
using InterpolateCameraPos & InterpolateCameraLookAt -
iLearner - 07.05.2017
Hey,
So this was the first time i was using camera related things, i used this code to move the camera from 1 part to another:
PHP код:
InterpolateCameraPos(playerid, -2193.797607, -1153.279663, 20.058774, -2317.571777, -1025.146606, 18.512058, 10000);
InterpolateCameraLookAt(playerid, -2189.322509, -1155.486328, 20.382766, -2313.607177, -1028.189208, 18.672187, 10000);
Works fine, but the problem is the trees look weired:
Anyone knows why though?
Re: using InterpolateCameraPos & InterpolateCameraLookAt -
IstuntmanI - 07.05.2017
Your character is way too far from the camera, so you only see the LODs of those objects. Set player's position closer to the camera.