Replies: 1 comment
-
This is one of those features that makes a lot more sense in the real world than it does in a simulation; the way Cannon makes collision logic expedient is by first testing for axis-aligned bounding box intersection - imagine the entire simulation divided into cubes. When the cube approximation of a collider is within the grid space of another collider (a rather simple comparison), more precise math kicks in to actually compute a collision. Inverting a collider alters the AABB logic: all colliders in your example will always intersect - at least without further resolving - which ends up looking like |
Beta Was this translation helpful? Give feedback.
-
I am working on a snow globe project in a React application and would like to propose an 'inverted' option:
The rationale behind this suggestion is as follows:
I would be grateful if you could consider the introduction of an invert collider option to explore more possibilities on the web.
Beta Was this translation helpful? Give feedback.
All reactions