|
| 24 Jun 2014 06:14 PM |
| How do I get the camera to interpolate with the target (2nd parameter) of a moving object? |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2014 06:16 PM |
| You mean interpolate to a moving target? You could write your own function to do it. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2014 06:18 PM |
I don't understand how I could write such a function as I am new to camera manipulation. Here's my code:
***************** part1CFrame = game.Workspace.c1.CFrame part2CFrame = game.Workspace.c2.CFrame local camera = workspace.CurrentCamera camera.CameraSubject = workspace.BasePlate camera.CoordinateFrame = part1CFrame camera.CameraType = "Scriptable" for i = 1, 100 do wait() camera.CoordinateFrame = camera.CoordinateFrame - Vector3.new(0, 0, 0.1) end camera:Interpolate(game.Workspace.c2.CFrame, game.Workspace.lookEffect.CFrame, 4) *****************
On the last line, I want the CFrame of the 2nd parameter to always stay updated until the time (3rd parameter) runs out. |
|
|
| Report Abuse |
|
|
|
| 24 Jun 2014 06:21 PM |
| So you do mean interpolate to a moving part, then? |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Jun 2014 06:29 PM |
| Hmm, you would have to create your own function, using matrix interpolation. |
|
|
| Report Abuse |
|
|