remove recenter, no more vreffect
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user