aframe-alongpath-component icon indicating copy to clipboard operation
aframe-alongpath-component copied to clipboard

Example code no longer working!

Open JeffreyConnected opened this issue 5 years ago • 1 comments

I don't think this example code is valid any longer.

<head>
  <title>My A-Frame Scene</title>
  <script src="https://rawgit.com/aframevr/aframe/master/dist/aframe-master.min.js"></script>
  <script src="https://rawgit.com/protyze/aframe-curve-component/master/dist/aframe-curve-component.min.js"></script>
  <script src="https://rawgit.com/protyze/aframe-alongpath-component/master/dist/aframe-alongpath-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-curve id="track1">
      <a-curve-point position="-2 2 -3"></a-curve-point>
      <a-curve-point position="0 1 -3"></a-curve-point>
      <a-curve-point position="2 2 -3"></a-curve-point>
    </a-curve>
    
    <a-box alongpath="curve: #track1"></a-box>
  </a-scene>
</body>

When I try to use it I get the following errors in the console.

core:schema:warn Default value `0 0 0` does not match type `vec3` in component `clone-along-curve` browser.js:111:32
core:schema:warn Default value `1 1 1` does not match type `vec3` in component `clone-along-curve` browser.js:111:32
THREE.Object3D: .getWorldPosition() target is now required

JeffreyConnected avatar Jul 05 '20 01:07 JeffreyConnected

Yep! Having same issue also, did you manage to find a fix for this?

Seeingred0 avatar Apr 23 '21 02:04 Seeingred0