Skip to content

Commit

Permalink
Add secondary teleport flag to client corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua committed Apr 12, 2024
1 parent 12b8a44 commit b7e01c4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1620,11 +1620,17 @@ void UVRBaseCharacterMovementComponent::OnClientCorrectionReceived(class FNetwor
{
BaseVRCharacterOwner->OnCharacterNetworkCorrected_Bind.Broadcast();

if(IsValid(BaseVRCharacterOwner->LeftMotionController))
if (IsValid(BaseVRCharacterOwner->LeftMotionController))
{
BaseVRCharacterOwner->LeftMotionController->TeleportMoveGrips(false, false);
BaseVRCharacterOwner->LeftMotionController->PostTeleportMoveGrippedObjects();
}

if (IsValid(BaseVRCharacterOwner->RightMotionController))
{
BaseVRCharacterOwner->RightMotionController->TeleportMoveGrips(false, false);
BaseVRCharacterOwner->RightMotionController->PostTeleportMoveGrippedObjects();
}
//BaseVRCharacterOwner->NotifyOfTeleport(false);
}
}
Expand Down

0 comments on commit b7e01c4

Please sign in to comment.