Shader linking i guess

This commit is contained in:
2026-04-12 14:52:33 +03:00
parent 79ceac1005
commit 457b455042
38 changed files with 12534 additions and 114 deletions

View File

@@ -52,6 +52,12 @@ public:
RapierPhysicsBody_t *m_pBody = NULL;
};
struct Option_checkCastFn
{
fnCheckCast c;
};
class CRapierPhysicsWorld: public IPhysicsWorld
{
public:
@@ -80,14 +86,14 @@ public:
}
virtual CastResult_t RayCast( Vector vBegin, Vector vEnd ) override
virtual CastResult_t RayCast( Vector vBegin, Vector vEnd, fnCheckCast check ) override
{
return CRapierPhysicsWorld_RayCast(m_pWorld, vBegin, vEnd);
return CRapierPhysicsWorld_RayCast(m_pWorld, vBegin, vEnd, (Option_checkCastFn){check} );
}
virtual CastResult_t ShapeCast( HShape hShape, Quat vOrientation, Vector vBegin, Vector vEnd ) override
virtual CastResult_t ShapeCast( HShape hShape, Quat vOrientation, Vector vBegin, Vector vEnd, fnCheckCast check ) override
{
return CRapierPhysicsWorld_ShapeCast(m_pWorld, (RapierShape_t*)hShape, vOrientation, vBegin, vEnd );
return CRapierPhysicsWorld_ShapeCast(m_pWorld, (RapierShape_t*)hShape, vOrientation, vBegin, vEnd, (Option_checkCastFn){check} );
}