Hello World! I am currently making an accurate Old Roblox Game and I really just need to make the Camera Script now.
And no the tutorials out there are outdated and not accurate.
So if you want to continue please read this below.
Details
So basically people think that it just snaps right away, but it doesn’t. It actually smoothens out at the end while it was zooming in or out.
Video :
Blueprint :
Thanks in advance.
1 Like
Also help will be appreciated thanks.
Tetraic
(Axius)
September 30, 2022, 9:04am
#3
The Legacy roblox camera system uses a Math Formula called a “Bezier Curve”, you can lerp a cameras position based off of said Bezier Curve! It takes alot of trial and error.
A Bézier curve (/ˈbɛz.i.eɪ/ BEH-zee-ay) is a parametric curve used in computer graphics and related fields. A set of discrete "control points" defines a smooth, continuous curve by means of a formula. Usually the curve is intended to approximate a real-world shape that otherwise has no mathematical representation or whose representation is unknown or too complicated. Bézier curve is named after French engineer Pierre Bézier, who used it in the 1960s for designing curves for the bodywork of In ve...
TweenService isn’t very helpful here, since it only gives you a straight interpolation. Not sure what that tweet used it for.
You just need to move some value from 0 to 1 over time and set the position based on that value every frame.
You could use Stepped to fire an update function every physics frame, and keep track of time:
local elapsedTime = 0
game:GetService("RunService").Stepped:Connect(function(time, deltaTime)
elapsedTime = elapsedTime + deltaTime
end)
Then just divide elapsedTime …
1 Like
Oh wait, I’ve heard of this from a Vsauce episode lol! I forgot the Beizer Curve exists! Alright I’ll try to use this and tell you what happened. Thanks for reminding me!
Tetraic
(Axius)
September 30, 2022, 9:08am
#5
No problem, im a huge Vsauce fan, ive used Bezier curves alot, takes a bit of practice
1 Like
Hey one question, what line does the legacy beizer curve thing start? Thanks.
Tetraic
(Axius)
September 30, 2022, 9:14am
#7
I do believe the Legacy ROBLOX camera used a “Inner Quadratic Bezier Curve” based from the Humanoid outwards.
1 Like
Hey, ZestyIsSour here. Uhm, how do I remove the tween between the camera zooming? Thanks.