From 686c908f92574badc1c38dcdd20f00653d4d98b7 Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Wed, 29 May 2024 15:42:48 +0200 Subject: [PATCH] removing getComputedAttribute from CannonDriver.md getComputedAttribute deprecated in favor of getAttribute since AFrame 0.5 https://github.com/aframevr/aframe/blob/6aea9e7bddaa5f7f1188464ed8d9cedfcb8c41e9/CHANGELOG.md#deprecations-8 --- CannonDriver.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) ); ```