Remove distance check logic for active runtime target
This commit is contained in:
@@ -5961,6 +5961,16 @@ export class RuntimeHost {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
distanceBetweenPoints(
|
||||
this.currentPlayerControllerTelemetry.eyePosition,
|
||||
activeTarget.center
|
||||
) > TARGETING_ACTIVE_TARGET_RELEASE_DISTANCE
|
||||
) {
|
||||
this.retargetOrClearActiveRuntimeTarget();
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.isRuntimeTargetCameraVisible(activeTarget)) {
|
||||
this.activeRuntimeTargetOcclusionSeconds = 0;
|
||||
} else {
|
||||
@@ -5974,16 +5984,6 @@ export class RuntimeHost {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (
|
||||
distanceBetweenPoints(
|
||||
this.currentPlayerControllerTelemetry.eyePosition,
|
||||
activeTarget.center
|
||||
) > TARGETING_ACTIVE_TARGET_RELEASE_DISTANCE
|
||||
) {
|
||||
this.retargetOrClearActiveRuntimeTarget();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private updateRuntimeTargetingInputState() {
|
||||
|
||||
Reference in New Issue
Block a user