View Full Version : problem with physics
1337Elite
July 6th, 2005, 08:39 PM
well iv'e started with a physics engine for a ball game now.
The problem is that when it hits something in the x axis the ball just flies through it and accelerates outside the box it's in.
mathew.er
July 6th, 2005, 10:42 PM
can you post your script? its hard to tell right now ;)
nathan99
July 7th, 2005, 04:22 AM
maybe something like this might work on the hitting object..
if(this.hitTest(_root.ball._x, _root.ball._y, true)){
_root.ball.speed *= .5;
}
1337Elite
July 7th, 2005, 05:00 PM
i got it working but now i've got another problem :S
the first problem was that i gave it the wrong direction (i gave it a + in y axis so it went through it)
nathan99
July 7th, 2005, 10:30 PM
mm post ur fla
1337Elite
July 8th, 2005, 10:33 AM
i got that part working too
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.