Последняя стабильная сборка (0.9.0) A-Frame не может анимировать куб по сравнению с более ранним выпуском (0.5.0) - PullRequest
1 голос
/ 10 марта 2019

Когда я обновляю src = "https://aframe.io/releases/0.5.0/aframe.min.js" до последней версии 0.9.0 (src =" https://aframe.io/releases/0.9.0/aframe.min.js согласно https://github.com/aframevr/aframe#builds),, все анимации не работают. Кто-нибудь знает, почему?

<!DOCTYPE html>
<html>
<head>
	<title>Animate - A-Frame</title>
	<script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
</head>
<body>
	<a-scene>
		<a-assets>
			<img id="boxTexture" src="https://i.imgur.com/mYmmbrp.jpg">
			<img id="skyTexture" src="https://cdn.aframe.io/360-image-gallery-boilerplate/img/sechelt.jpg">
			<img id="groundTexture" src="https://cdn.aframe.io/a-painter/images/floor.jpg">
		</a-assets>

		<a-box position="0 2 -5" rotation="0 45 45" scale="2 2 2" src="#boxTexture" >
			<a-animation attribute="position" direction="alternate" dur="2000" repeat="indefinite"
				  to="0 1.8 -5"></a-animation>
			<a-animation attribute="rotation" begin="click" dur="2000" to="360 405 45"></a-animation>
			<a-animation attribute="scale" begin="mouseenter" dur="300" to="2.5 2.5 2.5"></a-animation>
			<a-animation attribute="scale" begin="mouseleave" dur="300" to="2 2 2"></a-animation>
		</a-box>
          
		<a-sky src="#skyTexture"></a-sky>
		<a-light type="ambient" color="#445451"></a-light>
		<a-light type="point" intensity="2" position="2 4 4"></a-light>
		<a-plane src="#groundTexture" rotation="-90 0 0" width="30" height="30"></a-plane>
		<a-camera>
			<a-cursor color="#ffffff"></a-cursor>
		</a-camera>
	</a-scene> 
</body>
</html>

1 Ответ

1 голос
/ 10 марта 2019
...