So i have a topdown project where my doors work by sliding to the side the problem with it is that it moves the 2dbox collider.
Is there a way to make only the object move but not the box collider?
So i have a topdown project where my doors work by sliding to the side the problem with it is that it moves the 2dbox collider.
Is there a way to make only the object move but not the box collider?
Why not just make them separate objects?
Kind of a newbie here i don’t know how to reference that in the other script
I don’t know what you mean. You already have the script to move the moving object, right? If you put the collider on a different object, then why does the moving object need a reference the that object?