- Home /
Using animations to change transform without affecting the collider
Hey,
I made some animations to my game's pick-ups, so it won't be boring. My problem is when I, for example, rotate a pickup 30 degrees to the right, the collider moves with it. I don't want that to happen, the animation should just be a visual effect and not actually change where the collider is.
By the way, I'm changing only scale and rotation, not the position.
How can I make it so it's only visual?
Thanks.
Comment
Best Answer
Answer by RLin · Apr 25, 2018 at 11:12 PM
Create an empty gameobject. Put the collider on this empty gameobject. Create another empty gameobject and make it a child of the first. Add the visuals to this new gameobject. Change only the transform of the child object.
Your answer
