I have two objects, one is a wall, and the other is a ball.
They are both solid objects.
I would like to know how to make the ball bounce off of the wall. I have set the gravity off the ball to 1, but the ball just goes straight through.
Could someone please help, it would be very appreciated.
Bounce Off Of Wall?
Started by lostprophetpunk, Feb 21 2008 02:25 PM
5 replies to this topic
#1
Posted 21 February 2008 - 02:25 PM
#2
Posted 21 February 2008 - 02:28 PM
On collision with wall, use this:
#3
Posted 21 February 2008 - 02:32 PM
Thank you for the help, but I cannot seem to get it to stop bouncing.
#4
Posted 21 February 2008 - 06:36 PM
after the ball bounces used this code
speed *= .9
or set variable speed to speed*.9 dd
That will cause it to loos momentum each bounce
speed *= .9
or set variable speed to speed*.9 dd
That will cause it to loos momentum each bounce
#5
Posted 21 February 2008 - 07:54 PM
Should the ball be solid?
Sounds odd to me.
TtT
Sounds odd to me.
TtT
#6
Posted 21 February 2008 - 08:16 PM
Should the ball be solid?
Sounds odd to me.
TtT
Your walls should be... In the ball you add bounce agains solid presicelly in the collision event with wall. It might also help to use
move contact solid using direction (for direction) and speed (for maximum) before you bounce.
Sorry, I misread your problem.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











