Facepunch / sbox-issues

176 stars 12 forks source link

Unintended behavior with trigger and model collider #6633

Open eEight-dev opened 3 hours ago

eEight-dev commented 3 hours ago

Describe the bug

2 days ago I was able to walk in this trigger multiple times and spawn multiple pistols. Now it seems like even after I exit it for the first time, it still thinks I'm inside it?

https://github.com/user-attachments/assets/1dadaffa-df26-42ac-b706-387a1b06a378

Maybe this has something to do with it: https://discord.com/channels/833983068468936704/835035328779518023/1296405717825355806

To Reproduce

  1. Have a player with a model collider (Static: Disabled, Is Trigger: Disabled)
  2. Have another model (the cylinder in the video) with a model collider (Static: Enabled, Is Trigger: Enabled)
  3. Watch the trigger not noticing when the player with model collider is exiting.

Expected behavior

I expect to be able to walk in the trigger multiple times and spawn multiple pistols like before.

Media/Files

No response

Additional context

I can't zip up the project however I can add people to the github repository if needed.

Gmod4phun commented 2 hours ago

From what Im experiencing, the triggers got a bit busted after the update. It looks like if you disable the motion of a rigidbody while its in the trigger, the trigger will stop firing the Enter/Exit events even if you re-enable the object's motion.

https://github.com/user-attachments/assets/463404d3-c9ed-4abe-b76d-55cc8c036358