Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OnTriggerEnter does not fire on spawn but does so in the game client #75

Open
simonknittel opened this issue Apr 7, 2023 · 0 comments

Comments

@simonknittel
Copy link

simonknittel commented Apr 7, 2023

Hey!

In the game client of VRChat the method OnTriggerEnter does fire for every intersecting collider when you spawn into the world. However, this does not happen in ClientSim.

This disparity could lead to issues when you use the method to do something like counting intersecting colliders. This then behaves differently between the game client and the ClientSim.

My current workaround:
Have the collider disabled initially and enable with a Start method. This way, OnTriggerEnter also fires in ClientSim on spawn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant