- Home /
How to block the movement of the collider on an object?
Hello! I want that when the transform component moves, only the mesh moves, and the collider is blocked (not moving). Is this possible? Tell me please
Answer by Vannerss · Apr 01 at 06:28 PM
You could put an empty object that hold the collider on top of the object that holds the mesh, and never move the transform of the object that holds the collider.
Just a quick idea that could work. there might be a more elegant solution somewhere though.
Yes, I would like to avoid double objects, there are already too many of them.If I were the developers, I would make a lock icon on the collider component and when you click on it, the collider would be blocked when the transform component moves.
that be cool but doing that would probably make it the same as having two objects because that would mean that the collision while will have its own transform instead of using the parents object transform. so it would be the same as having an extra empty object.