Skip to content

Commit fd935d8

Browse files
committed
simplify logic
1 parent df4c347 commit fd935d8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rewrite/src/exe/coll.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,7 @@ static void _COLL_TestTriangle(CollDCache* cache, const CollVertex* v1, const Co
358358
cache->collidedVertices[0] = cache->currTestVertices[0]->levVertex;
359359
cache->collidedVertices[1] = cache->currTestVertices[1]->levVertex;
360360
cache->collidedVertices[2] = cache->currTestVertices[2]->levVertex;
361-
cache->coll.pos = cache->collIntersection.pos;
362-
cache->coll.normalDominantAxis = cache->collIntersection.normalDominantAxis;
363-
cache->coll.triNormal = cache->collIntersection.triNormal;
364-
cache->coll.planeDist = cache->collIntersection.planeDist;
365-
cache->coll.interpolationPoint = cache->collIntersection.interpolationPoint;
361+
cache->coll = cache->collIntersection;
366362
cache->collidedQuadblock = cache->currQuadblock;
367363
cache->collidedTriangleIndex = cache->currTriangleIndex;
368364
cache->barycentricTest = barycentricTest;

0 commit comments

Comments
 (0)