Tweening model and curving it

Hi, I am trying to figure out how to tween curve a model, I have been struggling for ages, any help would be appreciated.

Methods I tried: TweenService with start-point, mid-point and end-point. [Which is not smooth]

Maybe this could be of some assistance
https://developer.roblox.com/en-us/articles/Bezier-curves

2 Likes

What do you mean by “curve”.

A curve as in non-linear rate of interpolation?
A curve as in the path it will make?

This kind of curve

I suggest the article @IProgramForFun linked.

I suggest using what @IProgramForFun suggested and use BĂ©zier curves

Is it the only way of doing it or there’s an easier one?

You could use it the PathFindingService and tween the part to each waypoint

It will also be used for a model tween? Or I need to do like tween for each part?

Then use a body position and weld the parts to the primary part, body positions act like a tween when moving a part, also they have to be unanchored

I think you’ll need to either run another tween regarding its rotation. I don’t see any specific application of the curved model, I might be mistaken.

Alternatively, create a pivot part and tween the angle of the pivot when the rest of the assembly is welded to the pivot.

Updated my Dynamo module today just for this.:slight_smile:
Dynamo: Supports Multiple Tweens, Bezier Curves, & Model / Part Movement

1 Like

For the value that you put in the tween you can use cosine or sine, it’s basically values that form this curve, I don’t much details about what cosine or sine are as I have not yet studied trigonometry in detail, however this graph can help you understand:

download (1)

As you can see it provides this smooth gradient which might work well for what you are wanting. As for how to use a cosine in Roblox, that’s simple, you simple use math.cos(). You can put it in as the end goal argument for the position somehow, how you are going to do that is going to be the difficult part and is something you must figure out through testing. (Like I said I don’t have much experience with trigonometry)

I hope that I could have been of some use.