StrataSource / Engine

Issue tracker for Strata Source
47 stars 2 forks source link

physics objects can go through certain entities due to portals #789

Open MyGamepedia opened 1 year ago

MyGamepedia commented 1 year ago

Describe the bug

Pretty know problem (I think), I decide to report it here because of it's topical for huge count of maps and because of it's critical. If place portal near dynamic geometry - physics objects have opportunity to go throught dynamic geometry. Happen if portal bbox touch dynamic geometry and if physics object touch portal bbox and dynamic geometry bbox (as show ent_bbox).

The problem.

https://github.com/StrataSource/Engine/assets/103366204/5fe88538-0bdf-4d84-8859-ca6441349ed7

With showed bboxes.

https://github.com/StrataSource/Engine/assets/103366204/5576c80f-9c14-4846-959c-7ab004a7343a

Screenshot in high resolution.

Portal 2 Community Edition Screenshot 2023 05 24 - 16 48 39 51

I found that it's never work with func_detail, even if object was bugged (you can see it at end of the video). This problem also meeting in Portal, Portal 2 and should work in Momentum Mod.

No idea how hard this for fixing, but I hope that this will be fixed (I wish good luck to guys who'll try to fix this).

To Reproduce

  1. Open any map with dynamic geometry, I recommend testchmb_a_02.
  2. Enter in console ent_bbox prop_portal; ent_bbox npc_security_camera; ent_bbox func_brush; developer 1.
  3. Place portal under window (bbox should touch bbox of func_brush).
  4. Try to shove camera through window (bbox of camera should touch bbox of portal and func_brush).

Issue Map

Any with dynamic geometry.

Expected Behavior

Physics objects should not go through dynamic geometry in this situation.

Operating System

Any.

MyGamepedia commented 1 year ago

Interest that here window don't show bbox. Portal 2 Community Edition Screenshot 2023 05 24 - 17 07 22 18

MyGamepedia commented 1 year ago

But here I've convert glass to world geometry, and now it's not happen.

20230524171736_1

TeamSpen210 commented 1 year ago

A more obvious example (which you can't fix by converting to world brushes is grating or light bridges.

MyGamepedia commented 1 year ago

Hm... The glass in triple laser is prop_static.

image