Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you get the endPos and endFocus for interpolation?

Asked by 9 years ago

It's confusing.

I don't understand how people are able to locate the values for endPos and endFocus.

1 answer

Log in to vote
1
Answered by 9 years ago

I would recommend creating transparent, non-collidable, anchored bricks for this. endPos is the position that the camera would end up at, and the endFocus is where the camera will be looking at when the interpolation is complete. So make parts for each of those.

You can then do something like this in a local script for the interpolation, where PARTNAME is the name of the part (assuming you don't have FilteringEnabled set to true in Workspace).

--Put some code above maybe.
game.Workspace.CurrentCamera:Interpolate(game.Workspace.PARTNAME.CFrame, game.Workspace.PARTNAME.CFrame, 2) 
--Or even some code below.

--The "2" is the time it takes to interpolate, so change that accordingly, along with the PARTNAME parts.
0
That makes it easier for me. Thanks! Fidgeting 60 — 9y
0
It'll only interpolate to brick1 and that's it. Help? Fidgeting 60 — 9y
0
It'll only interpolate to brick2** Fidgeting 60 — 9y
0
Make sure the camera type is Scriptable. Also, if you're doing multiple interpolations, use wait(TIME) to wait until the other interpolation is done, where time is the time specified for how long the interpolation lasts. Spongocardo 1991 — 9y
Ad

Answer this question