@Override
    public void collision(PhysicsCollisionEvent event) {   
        System.out.println("Barrel Collision impulse is "+event.getAppliedImpulse());
        System.out.println("The event objects are "+event.getObjectA()+" and "+event.getObjectB());
        if (event.getObjectA() == this || event.getObjectB() == this){
                if(event.getAppliedImpulse()>50&&hitSound!=null){
                playHitSound(event.getPositionWorldOnA(),event.getAppliedImpulse()/1300);
               }
        }
    }