Shader linking i guess
This commit is contained in:
@@ -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} );
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user