Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extrapolate past curve endpoint
#1
Hi - I'm using Curvy for animation purposes and I'd like to have the ability for an object to shoot past the endpoint of the curve slightly.

Basically, this kind of curve:

[Image: curves_elastic_out.gif]

I can think of a couple ways to workaround this limitation. For example, I can measure the length of the curve, base the animation off that length, and then dynamically add another node along the tangent of the curve at the endpoint, so there's a bit of extra distance to play with for the animation.

Just wondering if there's an easy built-in way to accomplish this, or if I need to script up the solution myself.
Reply
#2
Hi,
Sorry, there is no such feature built-in. You will hae to script it. You will probably have to use the tangent at the last point of the spline to know where to extend your movement. Use yourSpline.GetTangent(1) to do so.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Figured, thanks for the confirmation!
Reply
#4
You are welcome.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
  Can Curve Spline be used for an in game level editor. Lupos 30 75 06-03-2023, 10:58 AM
Last Post: _Aka_
  Is there a way to extrude a bit past a spline segment? Lupos 1 6 05-09-2023, 09:55 AM
Last Post: _Aka_
  Unable to see the endpoint in Unity2020.3.26 snoopy9527 5 10 02-09-2023, 02:39 PM
Last Post: _Aka_

Forum Jump: