the godot xr tools teleport function already has a distance limit built in, but not a height limit. we need to write a check that compares the height of the player compared to the height of the teleported surface.
we should probably look at the dot product between the players location and the teleport cast location to get the height. may not even need the dot product, might just need to compare the difference of the Y values.
the godot xr tools teleport function already has a distance limit built in, but not a height limit. we need to write a check that compares the height of the player compared to the height of the teleported surface.
we should probably look at the dot product between the players location and the teleport cast location to get the height. may not even need the dot product, might just need to compare the difference of the Y values.
https://godotvr.github.io/godot-xr-tools/docs/teleport/