Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
I'm trying to make bouncing ball with physics behaviour. But I have problem with bouncing angle.
In situation like this:
ball should bounce like this:
but it bounces like this:
Why this ball bounces in this strange angle?
Live preview (shoot the ball like in angry birds):
https://dl.dropboxusercontent.com/u/176 ... index.html
https://dl.dropboxusercontent.com/u/176 ... gball.capx
The ball has prevent rotation set to Yes, so when the ball bounces it does not rotate and so friction causes its velocityX to reduce to zero.
But if I set the prevent rotation to No - the ball rotates and i'd like to avoid that. Ball should have always angle of it's movement.
Develop games in your browser. Powerful, performant & highly capable.
In that case, pin a non-rotating sprite on top of an invisible ball physics object.