Friday, 27 February 2015

Coiling The Grapple

After setting up the rope, it's time to get some control over it. First up, getting it to coil around a point so we can then place it on the character. I also need to make sure there is an easy way to control the coiling. So, I use a single variable to determine how coiled the rope is. It's between 0 and 1, with 0 being fully uncoiled and 1 being fully coiled.

Next up, the actual coiling itself.. Now this was... Confusing

Im not even sure if that diagram is relevant, I made it to help me, but I can't remember if it was helpful or not, cant be bothered to go over it but it looks cool and fancy...

So I came to the conclusion that the best way around this was like so:

For each "Section" of rope: Based on its length and the desired radius, calculate how many degrees of rotation it would "take up". I think the bottom left circle on the image is that.

Now using that and the control variable, I can figure out what sections need to be locked and in place, and what sections can be free. I can also use this variable and apply a dynamic animation (scripted animation) to it to animate the coiling of the rope.


xoxoxo

0 comments:

Post a Comment