fix sparks from balls passing through portals

This commit is contained in:
James Lambert 2023-12-23 19:39:38 -07:00
parent 0c141a9cff
commit 9c6e54112d

View file

@ -80,7 +80,11 @@ struct ContactManifold* collisionObjectCollideWithQuad(struct CollisionObject* o
&result
);
// quads with a thickness of 0 are one sided
if (quad->thickness == 0.0f && vector3Dot(&result.normal, &quad->plane.normal) < 0.0f) {
return SweptCollideResultMiss;
}
if (shouldCheckPortals) {
int touchingPortals = collisionSceneIsTouchingPortal(&result.contactA, &result.normal);
if (touchingPortals) {