[BUG R2] /cam_interp_look in test_cmds
#1

/cam_interp_look in default FS test_cmds - not worked.
InterpolateCameraPos with InterpolateCameraLookAt, not set camera look or no smooth.

/cam_interp and my /cam_look
pawn Код:
//test
    if(strcmp(cmd, "/cam_look",true) == 0) {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        TogglePlayerControllable(playerid, false);
        InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 1000.0, 10000);
        return 1;
    }
work, but time(smooth) not correct. I mean, work only if single use InterpolateCameraLookAt or InterpolateCameraPos.

UPD:
pawn Код:
//
    if(strcmp(cmd, "/camtest1",true) == 0) {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        InterpolateCameraPos(playerid, X, Y, Z, X + 20.0, Y + 20.0, Z + 65.0, 10000, CAMERA_MOVE);
        InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 100.0, 10000, CAMERA_MOVE);
        return 1;
    }
   
    if(strcmp(cmd, "/camtest2",true) == 0) {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        InterpolateCameraPos(playerid, X, Y, Z, X + 20.0, Y + 20.0, Z + 65.0, 10000);
        InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 100.0, 10000);
        return 1;
    }
   
    if(strcmp(cmd, "/camtest3",true) == 0) {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        InterpolateCameraPos(playerid, X, Y, Z, X + 20.0, Y + 20.0, Z + 65.0, 10000);
        return 1;
    }
   
    if(strcmp(cmd, "/camtest4",true) == 0) {
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos(playerid, X, Y, Z);
        InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 100.0, 10000);
        return 1;
    }
[ame]http://www.youtube.com/watch?v=R4xaY0cjv-o[/ame]
Reply


Messages In This Thread
[BUG RC2] InterpolateCamera(Pos & LookAt) - by AirKite - 10.03.2012, 00:30
Re: [BUG R2] /cam_interp_look in test_cmds - by MP2 - 10.03.2012, 10:54
Re: [BUG R2] /cam_interp_look in test_cmds - by Vince - 10.03.2012, 10:59
Re: [BUG R2] /cam_interp_look in test_cmds - by MP2 - 10.03.2012, 11:21
Re: [BUG R2] /cam_interp_look in test_cmds - by Jochemd - 10.03.2012, 11:25
Re: [BUG R2] /cam_interp_look in test_cmds - by Vince - 10.03.2012, 11:29
Re: [BUG R2] /cam_interp_look in test_cmds - by AirKite - 10.03.2012, 14:26
Re: [BUG R2] /cam_interp_look in test_cmds - by AirKite - 10.03.2012, 16:09
Re: [BUG R2] /cam_interp_look in test_cmds - by AirKite - 21.03.2012, 01:54
Re: [BUG R2] /cam_interp_look in test_cmds - by Kar - 21.03.2012, 02:20

Forum Jump:


Users browsing this thread: 1 Guest(s)