diff --git a/CannonDriver.md b/CannonDriver.md index a194f31..3f19a82 100644 --- a/CannonDriver.md +++ b/CannonDriver.md @@ -219,7 +219,7 @@ In A-Frame, each entity's `CANNON.Body` instance is exposed on the `el.body` pro var el = sceneEl.querySelector('#nyan'); el.body.applyImpulse( /* impulse */ new CANNON.Vec3(0, 1, -1), - /* world position */ new CANNON.Vec3().copy(el.getComputedAttribute('position')) + /* world position */ new CANNON.Vec3().copy(el.getAttribute('position')) ); ```