# Slopes

**URL:** <https://forum.kirupa.com/t/slopes/238228>\
**Category:** programming\
**Created:** [September 8, 2007, 4:23pm UTC](https://forum.kirupa.com/t/slopes/238228 "2007-09-08T16:23:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fw2803](https://avatars.discourse-cdn.com/v4/letter/f/e5b9ba/32.png) [@fw2803](https://forum.kirupa.com/u/fw2803)\
**Post date:** [September 8, 2007, 4:23pm UTC](https://forum.kirupa.com/t/slopes/238228/1 "2007-09-08T16:23:46Z")

</div>

Hello

I’m thinking about one thing… When a ball falls from a height and hits a slope, it should slide down the slope, right? How do we simulate the whole thing?

First of all, I’ve got a ball called just “ball”. So when it touches the slope down there, i’ll use the distance formula stop it. Then what? It’ll just stop there! What codes should I add?
