DarkN3xus
|
  |
| Joined: 14 Apr 2013 |
| Total Posts: 94 |
|
|
| 30 Dec 2015 07:02 AM |
Trying to make a smooth camera when you move your camera.
local Camera = workspace.CurrentCamera
local LastFocusZ = Camera.CoordinateFrame.lookVector.Z --last focus constant to determine camera movement
while wait() do if LastFocusZ > Camera.CoordinateFrame.lookVector.Z then Camera.CoordinateFrame = CFrame.fromEulerAnglesXYZ(0,0, LastFocusZ - Camera.CoordinateFrame.lookVector.Z) elseif LastFocusZ < Camera.CoordinateFrame.lookVector.Z then Camera.CoordinateFrame = CFrame.fromEulerAnglesXYZ(0,0, LastFocusZ - Camera.CoordinateFrame.lookVector.Z / -2) -- inverse rotation end LastFocusZ = Camera.CoordinateFrame.lookVector.Z end
Anyone who can fix this? |
|
|
| Report Abuse |
|
DarkN3xus
|
  |
| Joined: 14 Apr 2013 |
| Total Posts: 94 |
|
| |
DarkN3xus
|
  |
| Joined: 14 Apr 2013 |
| Total Posts: 94 |
|
| |