↧
Answer by Pimgd for Bouncing stacking boxes
if (this.velocity > dampening) { this.velocity -= dampening;} else { this.velocity = 0;}this.velocity = -this.velocity;Seems like you could use Math functions for this:this.velocity =...
View ArticleBouncing stacking boxes
I'm not sure if it would be better to make the envelope into an extension of the Rectangle constructor.The physics seem a bit dodgy, it works well most of the time, but sometimes the boxes overlap and...
View Article
More Pages to Explore .....