Skip to content

Commit

Permalink
reverting magnet ranges, investigate other ranges tommorow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tezeroth committed Jan 3, 2025
1 parent a7f44cb commit eba02ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<!--<script src="raycaster-listen.js"></script>-->
<script src="ar-shadow-helper.js"></script><!--hers-->
<script src="ar-cursor.js"></script><!--hers-->
<!--<script src="show-magnet-range.js"></script>-->
<script src="show-magnet-range.js"></script>


</head>
Expand Down Expand Up @@ -209,6 +209,7 @@
data-pick-up
class="magnet-left magnet-right"
data-magnet-range="0.5,0.5,360,90"
magnet-range-debug="range: 0.2 0.1"
position="-2 1.3 3"
physx-body-from-model="type: dynamic; mass:2;"
scale="1 1 1"
Expand Down
4 changes: 2 additions & 2 deletions show-magnet-range.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script>

AFRAME.registerComponent('magnet-range-debug', {
schema: {
range: {type: 'vec2', default: {x: 0.2, y: 0.1}} // radial (X), vertical (Y)
Expand Down Expand Up @@ -49,4 +49,4 @@ AFRAME.registerComponent('magnet-range-debug', {
}
}
});
</script>

0 comments on commit eba02ea

Please sign in to comment.