#OnTriggerEnter not working with Tugboat

10 messages · Page 1 of 1 (latest)

gentle peak
#

When I play the game in "singleplayer" with Yak, OnTriggerEnter triggers. When I play with Tugboat as host/client it doesn't trigger.
Anyone know a possible cause of this or what I can check/test to find the issue?

lone steppe
#

Should trigger normally, which version you are using? Can you share some code/setup?

gentle peak
#

I'm using Unity 2021.3.21f1 , Fishnet 3.5.7.Pro and I'm using Lobby and Worlds 3.0.0 to join the game from a lobby.

I'm using;

private void OnTriggerEnter(Collider other)
{
       Debug.Log("Test trigger");
{

It works perfectly when I don't go through the lobby and use Yak transport. But when I use Tugboat, it never registers the trigger, the player is both Server & Client.

lone steppe
#

tbh i'm not into lobby and worlds atm as i have my own solution in my project.. Can you try it with tugboat and without lobby? So just load the scene and try if the trigger fires

#

Maybe your physics scene isn't set right

gentle peak
lone steppe
#

Another idea, do you use the TimeManager Component in your test scene? If so do you also added it to the Lobby scene?

gentle peak
lone steppe
#

Do you still have this issue? If you are not able to find the breaking part, is this just normal LaW project or some modification of it? I can take a look this afternoon

gentle peak