- Home /
Question by
UraniumSlug · Oct 15, 2013 at 09:52 PM ·
animationfollow
GameObject follow animation
I'd like the GameObject which contains my muzzle flash to follow my guns recoil animation when it fires. How can this be achieved? Is there some sort of mesh specific transform I can access?
Comment
Answer by Rati · Oct 15, 2013 at 10:14 PM
currently, your muzzle flash spawn on your gun barrel, but has no parents ? You could parent your muzzleflash to your gun pivot
or maeby add a transform / (a empty game object) on your gun barrel, and parenting the flash to the transform
you could add a transform on your barrel, and move it in your animation
The gun and the barrel are one and the same. The issue is the transform doesn't appear to be affected by the animation.