Demigiant Forum

Unity Assets => DOTween & DOTween Pro => Topic started by: boolean0101 on October 08, 2015, 12:53:15 AM

Title: Any way around PunchPosition not being relative?
Post by: boolean0101 on October 08, 2015, 12:53:15 AM
Hi there

Another question :P

I was having trouble getting DOPunchPosition to work and found this thread (http://forum.demigiant.com/index.php?topic=94.msg381#msg381). Basically DOPunchPosition stores a series of Vector3 points when the tween is first created  - so technically it's relative, but only relative to the first time it runs.

This is ok for single tweens that are created on-the-fly, but this am I correct in thinking this rules out their use in reusable sequences? I have a couple of sequences that I recycle in a few places (all the other coordinates are relative) but I can't use DOPunchPosition because it jumps back to the spot where the sequence was first played.

SetRelative works so well for everything else I figured I'd ask if there's any way around this.

Cheers!