Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: kloveridge on September 15, 2015, 04:59:06 PM

Title: How to extract points from a CatMullRom Spline using Hotween
Post by: kloveridge on September 15, 2015, 04:59:06 PM
I purchases DOTween Pro last night. I've been using the non-pro version for some time and have been happy with it.

But I do have a question I hoped someone could help with with. I have two basic problems:

1)I need to move a object with tweening along splines.
2)I need to draw the spline that follows the path of the movement

DOTween is great for number 1. However, 2 is out of the scope of DOTween. I get that. However, you have all these great functions for moving objects. I just need a basic way to get positions along a spline using a percentage. If this is possible, I would appreciate some pointers.

Thanks in advance.
Title: Re: How to extract points from a CatMullRom Spline using Hotween
Post by: Daniele on September 15, 2015, 05:55:05 PM
Hi,

If you need to draw the spline, you can use the GetDrawPoints method I just added today (grab the latest version here (http://forum.demigiant.com/index.php?topic=143.0)).

Cheers,
Daniele
Title: Re: How to extract points from a CatMullRom Spline using Hotween
Post by: kloveridge on September 15, 2015, 06:05:01 PM
I will give this a shot. Thanks!