-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️(orbit-controls): update to work with latest aframe 1.4.1
- Loading branch information
Showing
7 changed files
with
29 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,15 +60,25 @@ Install and use by directly including the [browser files](dist): | |
```html | ||
<head> | ||
<title>My A-Frame Scene</title> | ||
<script src="https://aframe.io/releases/0.9.0/aframe.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/aframe-orbit-controls.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/aframe-supercraft-loader.js"></script> | ||
<script src="https://aframe.io/releases/1.4.1/aframe.min.js"></script> | ||
<script src="https://unpkg.com/aframe-orbit-controls/dist/aframe-orbit-controls.min.js"></script> | ||
</head> | ||
|
||
<body> | ||
<a-scene> | ||
<a-entity supercraft-loader="name: icky-snake"></a-entity> | ||
<a-entity camera look-controls orbit-controls="target: 0 1.6 -0.5; minDistance: 0.5; maxDistance: 180; initialPosition: 0 5 15"></a-entity> | ||
<a-torus-knot | ||
color="#B84A39" | ||
arc="180" | ||
p="2" | ||
q="7" | ||
radius="5" | ||
radius-tubular="0.1" | ||
></a-torus-knot> | ||
<a-entity | ||
camera | ||
look-controls | ||
orbit-controls="target: 0 1.6 -0.5; minDistance: 0.5; maxDistance: 180; initialPosition: 0 5 15" | ||
></a-entity> | ||
</a-scene> | ||
</body> | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ | |
<meta charset="utf-8"> | ||
<title>A-Frame Orbit Controls Component - Basic</title> | ||
<meta name="description" content="Basic example for A-Frame Orbit Controls component."></meta> | ||
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script> | ||
<script src="https://aframe.io/releases/1.4.1/aframe.min.js"></script> | ||
<script src="../../dist/aframe-orbit-controls.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/aframe-supercraft-loader.js"></script> | ||
</head> | ||
<body> | ||
<a-scene> | ||
<a-entity supercraft-loader="name: icky-snake"></a-entity> | ||
<a-torus-knot color="#B84A39" arc="180" p="2" q="7" radius="5" radius-tubular="0.1"></a-torus-knot> | ||
<a-entity camera look-controls="enabled: false" orbit-controls="target: 0 1.6 -0.5; minDistance: 0.5; maxDistance: 180; initialPosition: 0 15 20"></a-entity> | ||
</a-scene> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters