Skip to content

Can't interact with interactable object through station collider #142

Description

@Misaka-L

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions