• Create Account

### #Actualdabo

Posted 27 April 2012 - 02:44 AM

I have looked around a bit more and I've seen examples of implementations where only the vertical component of the velocity vector is affected by the coefficient of restitution; the horizontal component is only affected by friction. Is this correct? If so my code above is incorrect and it would explain why my puck slows down so much horizontally when it bounces. But I am not sure the angle of the bounce is correct if only the vertical component is affected by COR. Could anyone clarify this please?

The last line above would be this instead:
velocity.Y = 0.267 * velocity.Y;


### #1dabo

Posted 27 April 2012 - 02:43 AM

I have looked around a bit more and it seems in some implementations only the vertical component of the velocity vector is affected by the coefficient of restitution; the horizontal component is only affected by friction. Is this correct? If so my code above is incorrect and it would explain why my puck slows down so much horizontally when it bounces. But I am not sure the angle of the bounce is correct if only the vertical component is affected by COR. Could anyone clarify this please?

The last line above would be this instead:
velocity.Y = 0.267 * velocity.Y;


PARTNERS