# Changing direction when ball reaches Gutter in a bowling alley type of game

**URL:** <https://forum.kirupa.com/t/changing-direction-when-ball-reaches-gutter-in-a-bowling-alley-type-of-game/324424>\
**Category:** flash\
**Created:** [August 20, 2011, 6:13am UTC](https://forum.kirupa.com/t/changing-direction-when-ball-reaches-gutter-in-a-bowling-alley-type-of-game/324424 "2011-08-20T06:13:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iceherosubzero](https://avatars.discourse-cdn.com/v4/letter/i/8797f3/32.png) [@iceherosubzero](https://forum.kirupa.com/u/iceherosubzero)\
**Post date:** [August 20, 2011, 6:13am UTC](https://forum.kirupa.com/t/changing-direction-when-ball-reaches-gutter-in-a-bowling-alley-type-of-game/324424/1 "2011-08-20T06:13:32Z")

</div>

Hello all,  
I am trying to make a bowling alley type of game. I want the ball to change angle when it reaches the gutter, but the problem I am facing is, how can I check when the ball has reached the gutter as the bounding box for a line/box in perspective is bigger and I want to check any point on the line when the ball is passing/crossing that point and moving so that I can change its angle and direction. And also does anybody have a collision method algorithm or physics to create the falling of PINS when the ball hits the PINS.

Thanking you,  
Iceheros 🙂
