# Robust wall collision model

**URL:** <https://forum.kirupa.com/t/robust-wall-collision-model/216199>\
**Category:** flash\
**Created:** [February 14, 2007, 1:49pm UTC](https://forum.kirupa.com/t/robust-wall-collision-model/216199 "2007-02-14T13:49:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nih](https://avatars.discourse-cdn.com/v4/letter/n/4af34b/32.png) [@nih](https://forum.kirupa.com/u/nih)\
**Post date:** [February 14, 2007, 1:49pm UTC](https://forum.kirupa.com/t/robust-wall-collision-model/216199/1 "2007-02-14T13:49:57Z")

</div>

Hiya!

I’ve spent quite some time in the past looking for a really robust method of having an object collide with wall(s).

The object in motion needs to stop on the verge of the wall then slide along its boundaries. I’ve tried a combination of intersection testing, redirecting, back-stepping and the like but haven’t had much success. All of these methods are either slow or end up glitching in some way with the object shooting off in some strange direction or vibrating its way between solid corners.

Are there any good tutorials out there, or has anyone done this themselves? How would you solve this?
