# flight control

**URL:** <https://forums.solar2d.com/t/flight-control/291156>\
**Category:** Off-Topic\
**Created:** [June 16, 2011, 5:52pm UTC](https://forums.solar2d.com/t/flight-control/291156 "2011-06-16T17:52:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakescarano](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/bb73d2/32.png) [@jakescarano](https://forums.solar2d.com/u/jakescarano)\
**Post date:** [June 16, 2011, 5:52pm UTC](https://forums.solar2d.com/t/flight-control/291156/1 "2011-06-16T17:52:56Z")

</div>

Well I managed to rip apart the Flight control project to where it just shows one plane and the run way.  
I was wondering if there was a way to set up boundaries where the plan can’t fly outside of those boundaries. Say we had a maze that the plane had to fly through. If the plane tried to go through a wall it would cancel its path. is this possible? [import]uid: 51459 topic\_id: 11327 reply\_id: 311327[/import]

---

<div class="post-metadata">

**Author:** ![fatcow240](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/f/3bc359/32.png) [@fatcow240](https://forums.solar2d.com/u/fatcow240)\
**Post date:** [May 17, 2012, 11:57pm UTC](https://forums.solar2d.com/t/flight-control/291156/2 "2012-05-17T23:57:39Z")

</div>

This could be done using the wall as a collision.

`  
function onWallCollision(self, event)  
 event.other.points = {}  
 event.other:setLinearVelocity(0,0)  
end  
` [import]uid: 139413 topic\_id: 11327 reply\_id: 107460[/import]
