Reset prevHitHeight Offset?
DanielSchneider93 opened this issue · 0 comments
DanielSchneider93 commented
When I manually set the camera Rig position with f.e:
document.getElementById('cameraRig').setAttribute('position', '0 4 0');
from '10 10 10' to '0 4 0', and teleport afterwards, the -6 offset is still used and teleports me in to the ground.
How can I reset the Offset to 0?
I tried to read it with;
var teleOffset = document.querySelector('[teleport-controls]').components.teleport-controls;
console.log(teleOffset.prevHitHeight);
But:
ReferenceError: controls is not defined
Im pretty new to JS, would love some help :).