OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
Contrary
|
  |
| Joined: 08 Jan 2011 |
| Total Posts: 1306 |
|
| |
|
|
| 27 Feb 2016 03:33 PM |
| http://wiki.roblox.com/index.php?title=API:Class/Camera/Interpolate |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 27 Feb 2016 03:48 PM |
Can I get an example? I tried this but it doesnt work:
local pos1 = CFrame.new(8.46415424, 8.2035017, 4.99955988, 0.444636047, -0.479945898, 0.756274343, -1.49011594e-008, 0.844328225, 0.535826504, -0.895711362, -0.238247797, 0.375418723) workspace.CurrentCamera:Interpolate(pos1,pos1,3)
|
|
|
| Report Abuse |
|
|
| |
|
Contrary
|
  |
| Joined: 08 Jan 2011 |
| Total Posts: 1306 |
|
|
| 27 Feb 2016 03:50 PM |
| Oh yeah, people have been complaining that it isn't working anymore. |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 27 Feb 2016 03:50 PM |
Sooo, how can I make it tween?
|
|
|
| Report Abuse |
|
|
Contrary
|
  |
| Joined: 08 Jan 2011 |
| Total Posts: 1306 |
|
|
| 27 Feb 2016 03:56 PM |
| If you really wanted a smooth tween, you'd probably have to do some Trigonometry stuff. But, it really depends on what kind of rotation you're dealing with, as well as the difference between the CFrames. |
|
|
| Report Abuse |
|
|
Roblok1
|
  |
| Joined: 27 Jul 2011 |
| Total Posts: 2019 |
|
|
| 27 Feb 2016 04:02 PM |
here:
workspace.Camera:Interpolate(Position, LookAt, Time)
it takes 3 arguments. Position is the CFrame that the camera will end at when it is done tweening. LookAt is the CFrame the camera will be looking at when tweening is done. Time is a float number that is the amount of time it takes for the camera to tween
here is a proper example:
p1 = workspace.Part1 p2 = workspace.Part2
workspace.Camera:Interpolate(p1.CFrame, p2.CFrame, 3)
-- this means the camera will moove to p1 and will look at p2 and will take 3 seconds to get there. |
|
|
| Report Abuse |
|
|