djboy
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 794 |
|
|
| 09 Jun 2015 04:30 PM |
| How would i use Lerp on welds(For animations) when Lerp uses Position..(Also if i wanted to add the rotation to it 2) |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 09 Jun 2015 04:30 PM |
| www.roblox.com/CFrameInterpolator-Module-item?id=161739700 |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 09 Jun 2015 04:31 PM |
| Stravant's CFrame Interpolation module. |
|
|
| Report Abuse |
|
|
djboy
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 794 |
|
|
| 09 Jun 2015 04:35 PM |
| Mind doing quick runthrough on how i would use this? |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 09 Jun 2015 04:38 PM |
Requiring module returns a function. Give that function two CFrames, a start CFrame and an end CFrame. That'll return yet another function (and theta), which you can give an alpha to get a CFrame in between it. For successful block tweening:
local CInt = require(Module) local _,Interpolate = CInt(CFrame.new(3,4,1), CFrame.new(1,6,1)) for i = 0,1,.01 do wait() part.CFrame = Interpolate(i) end |
|
|
| Report Abuse |
|
|
djboy
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 794 |
|
|
| 09 Jun 2015 04:40 PM |
| What if i wanted to add the Angles? |
|
|
| Report Abuse |
|
|