Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Assets/SteamVR/InteractionSystem/Teleport/Scripts/Teleport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ private void PlayAudioClip( AudioSource source, AudioClip clip )
//-------------------------------------------------
private void PlayPointerHaptic( bool validLocation )
{
if ( pointerHand != null )
if ( pointerHand != null && pointerHand.noSteamVRFallbackCamera == null )
{
if ( validLocation )
{
Expand Down Expand Up @@ -895,12 +895,12 @@ private void TeleportPlayer()
{
Vector3 playerFeetOffset = player.trackingOriginTransform.position - player.feetPositionGuess;
player.trackingOriginTransform.position = teleportPosition + playerFeetOffset;

if (player.leftHand.currentAttachedObjectInfo.HasValue)
player.leftHand.ResetAttachedTransform(player.leftHand.currentAttachedObjectInfo.Value);
if (player.rightHand.currentAttachedObjectInfo.HasValue)
player.rightHand.ResetAttachedTransform(player.rightHand.currentAttachedObjectInfo.Value);
}
if (player.leftHand != null && player.leftHand.currentAttachedObjectInfo.HasValue)
player.leftHand.ResetAttachedTransform(player.leftHand.currentAttachedObjectInfo.Value);
if (player.rightHand != null && player.rightHand.currentAttachedObjectInfo.HasValue)
player.rightHand.ResetAttachedTransform(player.rightHand.currentAttachedObjectInfo.Value);
}
else
{
teleportingToMarker.TeleportPlayer( pointedAtPosition );
Expand Down