- Home /
Duplicate Question
Is this a problem with OnTriggerEnter?
I posted this question a day ago and had no responses… I've searched for over an hour on google and old unity answers but haven't found the solution so I'm asking again hoping someone else who can help might see it. (I hope that's not against the rules.)
I have a platform that moves down when the player is standing on it, otherwise it moves back up to it's original position.
To do this, I'm using onTriggerEnter to determine when the player is touching a box collider on the surface of the platform. However, when the platform moves down, the motion is jerky. I assume the player is slightly moving off the box collider every frame or so. How can I fix this?
The loop for the elevator is in Update but I tried LateUpdate thinking that might resolve it but it's exactly the same outcome— jerky.
Yes, posting duplicate questions is against the rules. You can edit your original question with new info ins$$anonymous$$d.
Follow this Question
Related Questions
Enemy respawn once hit by bullet please help 1 Answer
How to get back player control? 0 Answers
AI Attack Not Working! W/Video 1 Answer
Object reference not set to an instance of an object, How can I fix it? 0 Answers
Problem with trigger collider and damage function not hitting on the same frame 1 Answer