If there is a station collider between ray caster and interactable object, the interactable object will be ignore.
|
// Do not allow raycasting occupied stations |
|
// VRChatBug: Raycasting to your own station appears to not work properly in Udon. |
|
// Remove the last check on if the player is local to remove this. |
|
// Since only local players can enter stations in ClientSim, this code will not be needed unless a method is introduced for remote players to enter stations. |
|
IClientSimStation stationHandler = hitObject.GetComponent<IClientSimStation>(); |
|
if (stationHandler != null && stationHandler.IsOccupied() && !stationHandler.GetCurrentSittingPlayer().isLocal) |
|
{ |
|
return true; |
|
} |
Looks like it's be ignore by intention due to VRChat client behavior at the time. But currently VRChat client can do this without issues.
So maybe we should remove this check now.
If there is a station collider between ray caster and interactable object, the interactable object will be ignore.
ClientSim/Source/Runtime/Interact/ClientSimRaycaster.cs
Lines 103 to 111 in 6116761
Looks like it's be ignore by intention due to VRChat client behavior at the time. But currently VRChat client can do this without issues.
So maybe we should remove this check now.