title: cannon.js registering collision without colliding
body: <p>I'm creating simple car game with <strong>cannon.js</strong> and I'm struggling with this.</p>
  <p><strong>What I want to do:</strong></p>
  <p>When I run with car into another object (e.g. sphere) I want to know about it.</p>
  <p>For example increase score or whatever, but without applying forces to both objects.</p>
  <p><strong>What I unsuccesfully tried:</strong></p>
  <p>Use</p>
  <pre><code>chassisBody.addEventListener(&quot;collide&quot;,function(e){ &quot;mycode&quot;};
  </code></pre>
  <p>with combination groups</p>
  <pre><code>var GROUP1 = 1; etc..
  </code></pre>
  <p>but point of groups I guess is mark which object I want and don't want to collide, and I want them to &quot;collide&quot; but without actually applying forces to them, only registering that their bodies intersected and firing my scoring code etc.</p>
  <p>( I added threejs tag just in case someone might have stumbled across this, and I'm using it anyway )</p>
  <p><strong>EDIT 2022:</strong></p>
  <p>Here it is how it looks, warning, its an old code :)</p>
  <p><a href="https://martincerven.com/games/car_simulation/test.html" rel="nofollow noreferrer">https://martincerven.com/games/car_simulation/test.html</a></p>