# Car and hittest

**URL:** <https://forum.kirupa.com/t/car-and-hittest/90304>\
**Category:** Uncategorized\
**Created:** [May 16, 2005, 7:11pm UTC](https://forum.kirupa.com/t/car-and-hittest/90304 "2005-05-16T19:11:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeldafreak](https://avatars.discourse-cdn.com/v4/letter/z/74df32/32.png) [@zeldafreak](https://forum.kirupa.com/u/zeldafreak)\
**Post date:** [May 16, 2005, 7:11pm UTC](https://forum.kirupa.com/t/car-and-hittest/90304/1 "2005-05-16T19:11:10Z")

</div>

I am making a game with a simple car driving, what i want is so when the car drives over the MC(grass) it will slow down to speed =2. The problem is, depending on which side its entering, it will either go in reverse or go faster. Say its speed -= 2 and it enters from the front, it will just bounce off, but if i enter from the back, it will speed up. Is there any way just to slow down the speed when on the grass? and another problem is that i need it to ignore the bound box of the grass. I will post the code later.
