aframe-alongpath-component
aframe-alongpath-component copied to clipboard
Example code no longer working!
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
Yep! Having same issue also, did you manage to find a fix for this?