Hi.
Checking out my game "Superball" I think about to replace the inbuild physics behavior with a simple bouncing behavior (in fact of performance).
Therefore i just need to get the reflection angle on collision of the ball with an object (collision polygon).
How do i get the angle of the hit polygon
Develop games in your browser. Powerful, performant & highly capable.
If you give the object the bullet behavior and set it to 'bounce off solids', then the angle is calculated for you.
Is this what you mean.
Attached quick .capx just in case. Click on gun to shoot. Needs r175.
What behaviour are you using?
Bullet behaviour has gravity and bounce of solids, so it should be able to do it for you..
Other ways would be to use sprite.angle or the MovingAngle of the behaviour..
Thank you both for this quick answer - bullet behavior is the trick - I'll give it a try!