HOME | DD

Computer-Turret — Simple Physics Engine

Published: 2008-03-20 12:18:00 +0000 UTC; Views: 393; Favourites: 0; Downloads: 1
Redirect to original
Description A simple engine I made that allows you to throw the ball at different speeds and have it go farther distances and go faster depending on how fast you threw.

Hit SPACE to reset after you throw. The targets are only for practice.
Related content
Comments: 4

Lizardogre [2008-03-31 23:38:09 +0000 UTC]

The physics engine I made owns yours, mine at least looks realistic. And that bug I was telling you about: it happens on yours too, and it's going to be a challenge to fix. So yeah, I win.

👍: 0 ⏩: 1

Computer-Turret In reply to Lizardogre [2008-04-01 00:36:15 +0000 UTC]

...Bug? <.< all I'd have to do is set it to go to the start location before moving rather than stay where you dragged it to...

👍: 0 ⏩: 0

wonderwhy-ER [2008-03-20 12:55:48 +0000 UTC]

Feels kind of strange plus i found a bug. It seems you added onMouseUp to the ball it self. So that
that if mouseUp happens over the mouse you stop the drag and make the throw. But thing is if i try to throw it really fast mouseUp may happen not over the ball bout outside of it. As a result i released mouse button but mouseUp was not cached by ball. Try adding onMouseUp listener not to the ball but to the root/stage.

👍: 0 ⏩: 1

Computer-Turret In reply to wonderwhy-ER [2008-03-20 13:01:48 +0000 UTC]

Ah, good idea.

👍: 0 ⏩: 0