Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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
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.
Develop games in your browser. Powerful, performant & highly capable.
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!