2016年1月19日 星期二

ThirdPersonFollowCamera

(1)SpringArm(Scenes/oldCamera.unity)

insprited by Unreal Spring Arm componet

local Position of MainCamera is (0,0,0)

(2)CameraPivot(Scenes/planet.unity)

CameraPivot offer the same function as SpringArm
But using Quaternion make the code become clear and simple

z value of MainCamera is length of SpringArm

notes:
these two component has problem when using on planet. (when player moves , camera will shak a little)the Problem of CameraPivot is fixed  now!  

沒有留言:

張貼留言