- Home /
Box Collider on Spring Joint Randomly Stops Working in Editor and Builds
Hello, some friends and I have been working on a game for a while, but there's this one bug that's been annoying me for months. In our game, we have elevators that are activated by running the player into a button mounted on the wall. The button is a box collider with a dampened spring joint to set it back to its default position after being pressed. The press is detected by a trigger behind the button that detects when the box collider has been pushed in far enough. Sometimes, however, the box collider that collides with the player on the button just stops working. This happens both in the editor and in the build. If I'm in the editor I can fix it by turning the box collider off and on again. I've tried everything I can think of, but just can't seem to figure out what is causing this. I recently recorded the gameplay after the button stopped colliding, which I posted to YouTube.
The layout of the button and triggers:
For clarification, it is only the button plate's collider that stops working, I assume the trigger works fine. The only script acting on the box collider in question is the ButtonToElevator script, which is attached to the gameObject with the trigger collider. It simply communicated with the main elevator scripts through OnTriggerEnter.
Any ideas as to what may be causing this would be greatly appreciated.
Same problem here, my collider stop working when the SpringJoint2D is activate :/.. did you solved it?
Answer by d2clon · Aug 29, 2021 at 09:30 AM
In my case I had to check: "Enable Collision"
Your answer
Follow this Question
Related Questions
BoxCollider get stuck when dragging over the border of two BoxColliders 1 Answer
[Not Resolved but Explained] OnTrigger* / OnCollision* Discrete collisions issue 1 Answer
How do I solve the Box Collider (3D) Edge / Corner Collisions problem? 5 Answers
How to get the center of a CapsuleCast or SphereCast on collision 1 Answer