defic

Members
  • Content Count

    13
  • Joined

  • Last visited


Reputation Activity

  1. Like
    defic got a reaction from fariazz in p2 Contact impulse   
    Thanks, this helped me a lot. Though I edited the code little bit to calculate the difference between the velocitys of the colliding bodies:
    var res = Phaser.Point.distance(new Phaser.Point(equation[0].bodyB.velocity[0],equation[0].bodyB.velocity[1]), new Phaser.Point(equation[0].bodyA.velocity[0],equation[0].bodyA.velocity[1]));console.log(res); So if we have 2 moving objects and they are f.e. free falling and slightly touching each other,the impact would not generate a sound.