I upgraded to aframe 0.9.0 with aframe-physics-system v3.3.0 and applyImpulse seems to be broken after that. I upgraded from aframe 0.8.2 and aframe-physics-system 3.3.0 where all was working fine.
Here is my code -
entity.setAttribute('dynamic-body', true); entity.addEventListener('body-loaded', function () { setTimeout(function () { let pStart = new CANNON.Vec3(); let force = pStart.copy(attachment.object3D.getWorldPosition()); force.scale(140, force); entity.body.applyImpulse(force, entity.body.position); }, 0); })
It used to work perfectly fine but now I see this message in console log -
Hello,
I upgraded to aframe 0.9.0 with aframe-physics-system v3.3.0 and applyImpulse seems to be broken after that. I upgraded from aframe 0.8.2 and aframe-physics-system 3.3.0 where all was working fine.
Here is my code -
entity.setAttribute('dynamic-body', true); entity.addEventListener('body-loaded', function () { setTimeout(function () { let pStart = new CANNON.Vec3(); let force = pStart.copy(attachment.object3D.getWorldPosition()); force.scale(140, force); entity.body.applyImpulse(force, entity.body.position); }, 0); })
It used to work perfectly fine but now I see this message in console log -