I have a ball that bounces off a shape (shown below), how do I have it accurately bounce?
It's much larger but I want it to bounce off accurately throughout all the parts.
Help?
__________
\__ __/
| |
| |
| |
| |
| |
\ /
\ /
-
Offline
First, you have to know the slope of the wall/floor the ball is hitting at the point where it is hitting it.
Offline
Cool, I want to make a rocket ship.
__________
\__ __/
| |
| |
| |
| |
| |
\ /
\ /
`
Offline
I honestly don't know how I'd do it. What I'd first try to do is figure out where you're touching the wall, and then, using a 1-pixel costume, try to approximate the slope. It would be a lot easier if the sprite was only 1-pixel big to begin with.
Offline