remove recenter, no more vreffect

This commit is contained in:
Kevin Ngo
2018-12-10 17:51:15 -08:00
parent 17aa58d6b4
commit 6e126c54b1

View File

@@ -136,7 +136,7 @@
sub-object="from: #cursorLaser; name: glow"></a-mixin>
<!-- Player. -->
<a-entity id="cameraRig" bind__recenter="enabled: !isPlaying">
<a-entity id="cameraRig">
<a-entity id="camera" position="0 1.6 0.5" camera look-controls wasd-controls>
<a-entity
id="cameraCollider"
@@ -149,17 +149,9 @@
</a-entity>
</a-entity>
<!--
We want the recenter transforms to apply to the controllers.
Overlay component reparents entity to different scene.
Thus need to add overlay to root-level container.
But cannot add overlay component to camera else camera would get reparented to wrong.
Thus we have a separate controller rig that matches the same transforms as cameraRig.
-->
<a-entity
id="controllerRig"
class="overlay"
bind__recenter="enabled: !isPlaying"
proxy-event="event: recentered; to: #cameraRig; captureBubbles: true; as: recenter">
{% macro saber (hand, otherHand, bladeColor, beamColor) %}
<a-entity id="{{ hand }}Hand"