|
| 27 Apr 2016 06:41 PM |
| How is one able to tween the Camera CFrame or a Brick CFrame so that moves similarly to TweenPosition (Quad style) of a GuiObject? |
|
|
| Report Abuse |
|
|
Crimsonal
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1795 |
|
|
| 27 Apr 2016 06:59 PM |
local Speed = 0.1 local newCFrame = CFrame.new(0,0,0)
Part.CFrame = Part.CFrame:lerp(newCFrame, Speed) |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Apr 2016 07:05 PM |
...hold on.
I said Tween like a GUI on Quad. This gave me instant CFrame movement. |
|
|
| Report Abuse |
|
|
Crimsonal
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1795 |
|
| |
|
|
| 27 Apr 2016 07:30 PM |
| That was rather unhelpful. I could've settled for Interpolate. |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2016 07:37 PM |
| Forget about it. I found a Tween module. |
|
|
| Report Abuse |
|
|
Crimsonal
|
  |
| Joined: 23 Apr 2011 |
| Total Posts: 1795 |
|
|
| 28 Apr 2016 05:06 AM |
wtf what I gave you is interpolate
ok whatevs |
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 28 Apr 2016 05:22 AM |
| :lerp works for me. It tweens good for me |
|
|
| Report Abuse |
|
|
Jammer622
|
  |
| Joined: 19 Nov 2008 |
| Total Posts: 1739 |
|
|
| 28 Apr 2016 06:03 AM |
| colbert, I'm hoping you didn't just gloss over the fact that you can use loops like "for i = 1, 10, do" |
|
|
| Report Abuse |
|
|
WoolHat
|
  |
| Joined: 19 May 2013 |
| Total Posts: 1873 |
|
|
| 28 Apr 2016 06:08 AM |
He wants a smooth transition. When you're working with a simple for loop and a constant increment, you're just going to get an ugly, jumpy or very slow transition.
I use :lerp. It works pretty well. I never figured out how to utilize other modules for lerping, but if it works for OP then it works |
|
|
| Report Abuse |
|
|
|
| 21 May 2016 10:01 PM |
:lerp() gives you a linear CFrame tween. What I'm hunting for is a tween that's similar to Enum.EasingStyle.Quad.
for loops would work but then again, would throw me linear interpolation. |
|
|
| Report Abuse |
|
|