Closed Vivraan closed 2 years ago
internal void Init(in float initStartDistanceOffset, in float speedFactor) { Following = false; startDistanceOffset = initStartDistanceOffset; // mod-assign so the change is visible in Debug mode startDistanceOffset %= pathCreator.path.length; distance = startDistanceOffset; speed = originalSpeed * speedFactor; DOTween.Sequence() .Append( transform.DOMove( pathCreator.path.GetPointAtDistance(distance), initRepositionDuration)) .Insert( 0, transform.DORotateQuaternion( pathCreator.path.GetRotationAtDistance(distance), initRepositionDuration)) .AppendCallback(() => Following = true); }
(Video removed)
(Image removed) (The gun and god rays spin as expected)
DID NOT WORK Changed the sequence into raw tweens like so:
transform.DOMove( pathCreator.path.GetPointAtDistance(distance), initRepositionDuration); transform.DORotateQuaternion( pathCreator.path.GetRotationAtDistance(distance), initRepositionDuration) .onComplete += () => Following = true;
Offending Code
Expected Behaviour
(Video removed)
Actual Behaviour
(Image removed) (The gun and god rays spin as expected)
Steps taken to address issue
DID NOT WORK Changed the sequence into raw tweens like so: