Post mod/code requests in the Mod Requests topic.
Post mod releases in the Mod Showroom.
Read the Modding Rules BEFORE posting!
Free mod hosting from GTANet, simply login with your GTAForums account details
GTANet's modding wiki
Camera movement ?
Posted 29 December 2012 - 02:45 PM
Posted 06 July 2013 - 10:55 AM
Moreover i'd like to change FOV smoothly, something like :
|///From current FOV to NextFOV smoothly|
SmoothFOV(Camera cam,float NextFov,int duration);
Posted 06 July 2013 - 01:33 PM
first i calc direction that is the difference between destination and camera position:
|dir = vector3.normalize(dest - cam.position)|
then, in a Tick, While, For or whatever i increment the position with an 10ms interval (generally):
|cam.position += dir * 0.1|
the * 0.1 its just to reduce the speed of the movement
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users