Make multiple non-transformed collision shapes in a StaticBody get discarded in engine's broad phase algorithm #9816
baz-atak
started this conversation in
Engine Core
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
According to documentation
It's likely that these colliders are in close(ish) proximity to one another, therefore why not generate a single shape that encloses all the given colliders, then use this to determine if all those colliders can be discarded before testing each individually? e.g. a sphere or a box - perhaps based on which generates the smaller volume for the specific layout of the original colliders.
For instance I could then create a room consisting of simple box colliders for the walls with cut-outs for doors and windows etc., and save on multiple collision tests in the background.
Beta Was this translation helpful? Give feedback.
All reactions