Collision detection, alternatives to "push out"
        Posted  
        
            by LaZe
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by LaZe
        
        
        
        Published on 2010-04-06T08:04:33Z
        Indexed on 
            2010/04/06
            8:33 UTC
        
        
        Read the original article
        Hit count: 442
        
I'm moving a character (ellipsoid) around in my physics engine. The movement must be constrained by the static geometry, but should slide on the edges, so it won't be stuck.
My current approach is to move it a little and then push it back out of the geometry. It seems to work, but I think it's mostly because of luck. I fear there must be some corner cases where this method will go haywire. For example a sharp corner where two walls keeps pushing the character into each other.
How would a "state of the art" game engine solve this?
© Stack Overflow or respective owner