Tagged Questions
0
votes
1answer
77 views
Increase restitution (bounciness) of an object in a JavaScript formula
I'm going slightly around the houses on this one. I originally started a thread over on Stack Overflow about it but then it seemed to diverge into mathematics, with no joy from the SO community over ...
3
votes
1answer
377 views
Creating a frozen bubble clone [closed]
This photo illustrates the environment: http://i.imgur.com/V4wbp.png
I'll shoot the cannon, it'll bounce off the wall and it's SUPPOSED to stick to the bubble. It does at pretty much every other ...
7
votes
2answers
651 views
What is the best way to handle simultaneous collisions in a physics engine?
I'm writing a 2d physics engine in javascript so that I can learn more about physics in video games. I have it working correctly for rigid body collisions, except for if any body collides with two or ...
1
vote
1answer
453 views
What is wrong with my Dot Product?
I am trying to make a pong game but I wanted to use dot products to do the collisions with the paddles, however whenever I make a dot product objects it never changes much from .9 this is my code to ...
2
votes
2answers
696 views
Canvas Rotation collision detection on a sprite
I am using this code to detect collisions between two rectangular sprites.
intersect: function(other) {
return this.x < other.x + other.width && other.x < this.x + this.width ...