Skip to content

Conversation

@LivewireCB
Copy link
Contributor

Ported xCollide code from seils pc port repo.

Thank you Seil.

@github-actions
Copy link

main/SB/Core/x/xCollide

Section From To Bytes
📈 .rodata 0.00% 66.67% +16
.sbss 28.57% 100.00% +17
.sbss2 0.00% 100.00% +32
📈 .sdata2 44.64% 94.44% +39
📈 .text 13.41% 95.92% +22280
Function From To Bytes
📈 xSphereHitsOBB_nu(const xSphere*, const xBox*, const xMat4x3*, xCollis*) 0.59% 94.26% +895
sphereHitsModelCB(RpIntersection*, RpCollisionTriangle*, float, void*) 0.00% 100.00% +52
xSphereHitsModel(const xSphere*, const xModelInstance*, xCollis*) 1.14% 100.00% +486
xParabolaEnvCB(xClumpCollBSPTriangle*, void*) 0.00% 100.00% +1300
📈 xParabolaHitsEnv(xParabola*, const xEnv*, xCollis*) 0.97% 92.14% +525
Mgc_BoxBoxTest(const xBox*, const xMat4x3*, const xBox*, const xMat4x3*) 0.00% 100.00% +2724
xBoxHitsObb(const xBox*, const xBox*, const xMat4x3*, xCollis*) 5.00% 100.00% +106
xCollideCalcTri(xCollis::tri_data&, const xModelInstance&, const xVec3&, const xVec3&) 0.28% 100.00% +1448
@unnamed@xCollide_cpp@::render_tri(xCollis::tri_data&, const xModelInstance&) 0.00% 100.00% +4
xCollisTriHit(const xCollis::tri_data&, const xModelInstance&) 5.02% 100.00% +604
_rpCollBSPTreeForAllCapsuleLeafNodeIntersections(RpCollBSPTree*, RwLine*, float, RpV3dGradient*, int (*)(int, int, void*), void*) 0.29% 100.00% +1954
nodeInfo::operator=(const nodeInfo&) 0.00% 100.00% +20
RwLine::operator=(const RwLine&) 0.00% 100.00% +52
xSweptSpherePrepare(xSweptSphere*, xVec3*, xVec3*, float) 0.70% 100.00% +568
xSweptSphereGetResults(xSweptSphere*) 1.01% 100.00% +392
📈 xSweptSphereToTriangle(xSweptSphere*, xVec3*, xVec3*, xVec3*) 0.27% 93.00% +1940
xSweptSphereToSphere(xSweptSphere*, xSphere*) 0.00% 100.00% +316
📈 xSweptSphereToBox(xSweptSphere*, xBox*, xMat4x3*) 0.23% 95.70% +2337
SweptSphereHitsEnvCB(RpIntersection*, RpWorldSector*, RpCollisionTriangle*, float, void*) 4.12% 100.00% +130
SweptSphereLeafNodeCB(xClumpCollBSPTriangle*, void*) 3.33% 100.00% +162
📈 xSweptSphereToEnv(xSweptSphere*, xEnv*) 90.32% 90.74% +1
📈 SweptSphereModelCB(int, int, void*) 0.00% 98.75% +189
📈 xSweptSphereToModel(xSweptSphere*, RpAtomic*, RwMatrixTag*) 0.85% 91.15% +595
SweptSphereHitsEntCB(xScene*, xRay3*, xQCData*, xEnt*, void*) 0.00% 100.00% +980
📈 xSweptSphereToScene(xSweptSphere*, xScene*, xEnt*, unsigned char) 1.47% 95.47% +357
📈 xSweptSphereToStatDyn(xSweptSphere*, xScene*, xEnt*, unsigned char) 1.89% 91.55% +265
📈 xSweptSphereToNPC(xSweptSphere*, xScene*, xEnt*, unsigned char) 2.15% 90.38% +229
📈 xSweptSphereToNonMoving(xSweptSphere*, xScene*, xEnt*, unsigned char) 1.57% 92.92% +325
xSphereHitsCapsule(const xVec3&, float, const xVec3&, const xVec3&, float) 1.47% 100.00% +374
xSphereHitsBound(const xSphere&, const xBound&) 3.45% 100.00% +112
📈 xOBBHitsOBB(const xBox&, const xMat4x3&, const xBox&, const xMat4x3&) 0.33% 95.44% +1597
xSphereHitsVCylinder(const xVec3&, float, const xVec3&, float, float) 1.77% 100.00% +310
xSphereHitsVCircle(const xVec3&, float, const xVec3&, float) 2.12% 100.00% +258
xParabolaEvalVel(const xParabola*, xVec3*, float) 4.00% 100.00% +96
xParabolaEvalPos(const xParabola*, xVec3*, float) 3.12% 100.00% +124
xSphereHitsOBB(const xSphere&, const xBox&, const xMat4x3&) 15.56% 100.00% +30
xSphereHitsOBB(const xVec3&, float, const xBox&, const xMat4x3&) 0.00% 100.00% +84
xSphereHitsBox(const xVec3&, float, const xBox&) 0.00% 100.00% +148
xSphereHitsBox(const xSphere&, const xBox&) 0.00% 100.00% +36
xSphereHitsSphere(const xSphere&, const xSphere&) 0.00% 100.00% +40
xSphereHitsSphere(const xVec3&, float, const xVec3&, float) 5.00% 100.00% +106

1 similar comment
@github-actions
Copy link

main/SB/Core/x/xCollide

Section From To Bytes
📈 .rodata 0.00% 66.67% +16
.sbss 28.57% 100.00% +17
.sbss2 0.00% 100.00% +32
📈 .sdata2 44.64% 94.44% +39
📈 .text 13.41% 95.92% +22280
Function From To Bytes
📈 xSphereHitsOBB_nu(const xSphere*, const xBox*, const xMat4x3*, xCollis*) 0.59% 94.26% +895
sphereHitsModelCB(RpIntersection*, RpCollisionTriangle*, float, void*) 0.00% 100.00% +52
xSphereHitsModel(const xSphere*, const xModelInstance*, xCollis*) 1.14% 100.00% +486
xParabolaEnvCB(xClumpCollBSPTriangle*, void*) 0.00% 100.00% +1300
📈 xParabolaHitsEnv(xParabola*, const xEnv*, xCollis*) 0.97% 92.14% +525
Mgc_BoxBoxTest(const xBox*, const xMat4x3*, const xBox*, const xMat4x3*) 0.00% 100.00% +2724
xBoxHitsObb(const xBox*, const xBox*, const xMat4x3*, xCollis*) 5.00% 100.00% +106
xCollideCalcTri(xCollis::tri_data&, const xModelInstance&, const xVec3&, const xVec3&) 0.28% 100.00% +1448
@unnamed@xCollide_cpp@::render_tri(xCollis::tri_data&, const xModelInstance&) 0.00% 100.00% +4
xCollisTriHit(const xCollis::tri_data&, const xModelInstance&) 5.02% 100.00% +604
_rpCollBSPTreeForAllCapsuleLeafNodeIntersections(RpCollBSPTree*, RwLine*, float, RpV3dGradient*, int (*)(int, int, void*), void*) 0.29% 100.00% +1954
nodeInfo::operator=(const nodeInfo&) 0.00% 100.00% +20
RwLine::operator=(const RwLine&) 0.00% 100.00% +52
xSweptSpherePrepare(xSweptSphere*, xVec3*, xVec3*, float) 0.70% 100.00% +568
xSweptSphereGetResults(xSweptSphere*) 1.01% 100.00% +392
📈 xSweptSphereToTriangle(xSweptSphere*, xVec3*, xVec3*, xVec3*) 0.27% 93.00% +1940
xSweptSphereToSphere(xSweptSphere*, xSphere*) 0.00% 100.00% +316
📈 xSweptSphereToBox(xSweptSphere*, xBox*, xMat4x3*) 0.23% 95.70% +2337
SweptSphereHitsEnvCB(RpIntersection*, RpWorldSector*, RpCollisionTriangle*, float, void*) 4.12% 100.00% +130
SweptSphereLeafNodeCB(xClumpCollBSPTriangle*, void*) 3.33% 100.00% +162
📈 xSweptSphereToEnv(xSweptSphere*, xEnv*) 90.32% 90.74% +1
📈 SweptSphereModelCB(int, int, void*) 0.00% 98.75% +189
📈 xSweptSphereToModel(xSweptSphere*, RpAtomic*, RwMatrixTag*) 0.85% 91.15% +595
SweptSphereHitsEntCB(xScene*, xRay3*, xQCData*, xEnt*, void*) 0.00% 100.00% +980
📈 xSweptSphereToScene(xSweptSphere*, xScene*, xEnt*, unsigned char) 1.47% 95.47% +357
📈 xSweptSphereToStatDyn(xSweptSphere*, xScene*, xEnt*, unsigned char) 1.89% 91.55% +265
📈 xSweptSphereToNPC(xSweptSphere*, xScene*, xEnt*, unsigned char) 2.15% 90.38% +229
📈 xSweptSphereToNonMoving(xSweptSphere*, xScene*, xEnt*, unsigned char) 1.57% 92.92% +325
xSphereHitsCapsule(const xVec3&, float, const xVec3&, const xVec3&, float) 1.47% 100.00% +374
xSphereHitsBound(const xSphere&, const xBound&) 3.45% 100.00% +112
📈 xOBBHitsOBB(const xBox&, const xMat4x3&, const xBox&, const xMat4x3&) 0.33% 95.44% +1597
xSphereHitsVCylinder(const xVec3&, float, const xVec3&, float, float) 1.77% 100.00% +310
xSphereHitsVCircle(const xVec3&, float, const xVec3&, float) 2.12% 100.00% +258
xParabolaEvalVel(const xParabola*, xVec3*, float) 4.00% 100.00% +96
xParabolaEvalPos(const xParabola*, xVec3*, float) 3.12% 100.00% +124
xSphereHitsOBB(const xSphere&, const xBox&, const xMat4x3&) 15.56% 100.00% +30
xSphereHitsOBB(const xVec3&, float, const xBox&, const xMat4x3&) 0.00% 100.00% +84
xSphereHitsBox(const xVec3&, float, const xBox&) 0.00% 100.00% +148
xSphereHitsBox(const xSphere&, const xBox&) 0.00% 100.00% +36
xSphereHitsSphere(const xSphere&, const xSphere&) 0.00% 100.00% +40
xSphereHitsSphere(const xVec3&, float, const xVec3&, float) 5.00% 100.00% +106

@JoshSanch JoshSanch merged commit 68113e6 into bfbbdecomp:main Nov 29, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants