generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How can I make the camera tween from one CFrame to another

Previous Thread :: Next Thread 
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
27 Feb 2016 03:30 PM
titlerino


Report Abuse
Contrary is not online. Contrary
Joined: 08 Jan 2011
Total Posts: 1306
27 Feb 2016 03:32 PM
Interpolation?
Report Abuse
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
27 Feb 2016 03:33 PM
http://wiki.roblox.com/index.php?title=API:Class/Camera/Interpolate
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
27 Feb 2016 03:34 PM
ty


Report Abuse
OldGoldie is not online. 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
ThoughtConduit is not online. ThoughtConduit
Joined: 30 Nov 2015
Total Posts: 536
27 Feb 2016 03:49 PM
That function is broken


Report Abuse
Contrary is not online. 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 is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
27 Feb 2016 03:50 PM
Sooo, how can I make it tween?


Report Abuse
Contrary is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image