ClientSim icon indicating copy to clipboard operation
ClientSim copied to clipboard

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

Open simonknittel opened this issue 2 years ago • 0 comments

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.

simonknittel avatar Apr 07 '23 09:04 simonknittel