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
If I have a square box with bullet behavior that bounces off a solid object that is also square, the reflected angles eventually become inaccurate. Why is this?
How can I get accurate bouncing?
Develop games in your browser. Powerful, performant & highly capable.
You possibly can get better results by doing something like this if you only have vertical and horizontal walls:
Corners are a bit odd with the ball, but square against square should work well.
My case is a bit unusual, so I had to work out my own collision detection. I managed to get it bouncing accurately by calculating a projection vector for each axis, and flipping the motion with the shorter projection.