Added shape sweeping in C#

This commit is contained in:
Antoine Pilote
2024-08-10 18:09:22 -04:00
parent f3b9b328b1
commit 4dd1a4e6f7
9 changed files with 369 additions and 7 deletions

View File

@@ -52,6 +52,11 @@ namespace Nuake
return m_World->Raycast(from, to);
}
std::vector<ShapeCastResult> PhysicsManager::Shapecast(const Vector3& from, const Vector3& to, const Ref<Physics::PhysicShape>& shape)
{
return m_World->CastShape(from, to, shape);
}
const std::vector<Physics::CollisionData>& PhysicsManager::GetCollisions()
{
return m_World->GetCollisionsData();