Implemented a custom physics engine #316
|
@ -84,30 +84,9 @@ namespace SHADE
|
|||
|
||||
// Sphere VS Convex
|
||||
|
||||
static FaceQuery findClosestFace
|
||||
(
|
||||
const SHSphereCollisionShape& sphere
|
||||
, const SHConvexPolyhedronCollisionShape& polyhedron
|
||||
|
||||
) noexcept;
|
||||
|
||||
static int32_t findClosestPoint
|
||||
(
|
||||
const SHSphereCollisionShape& sphere
|
||||
, const SHConvexPolyhedronCollisionShape& polyhedron
|
||||
, int32_t faceIndex
|
||||
|
||||
) noexcept;
|
||||
|
||||
static int32_t findVoronoiRegion
|
||||
(
|
||||
const SHSphereCollisionShape& sphere
|
||||
, const SHVec3& faceVertex
|
||||
, const SHVec3& faceNormal
|
||||
, const SHVec3& tangent1
|
||||
, const SHVec3& tangent2
|
||||
|
||||
) noexcept;
|
||||
static FaceQuery findClosestFace (const SHSphereCollisionShape& sphere, const SHConvexPolyhedronCollisionShape& polyhedron) noexcept;
|
||||
static int32_t findClosestPoint (const SHSphereCollisionShape& sphere, const SHConvexPolyhedronCollisionShape& polyhedron, int32_t faceIndex) noexcept;
|
||||
static int32_t findVoronoiRegion (const SHSphereCollisionShape& sphere, const SHVec3& faceVertex, const SHVec3& faceNormal, const SHVec3& tangent1, const SHVec3& tangent2) noexcept;
|
||||
|
||||
// Capsule VS Convex
|
||||
|
||||
|
@ -115,14 +94,7 @@ namespace SHADE
|
|||
|
||||
// Convex VS Convex
|
||||
|
||||
static bool isMinkowskiFace
|
||||
(
|
||||
const SHVec3& a
|
||||
, const SHVec3& b
|
||||
, const SHVec3& c
|
||||
, const SHVec3& d
|
||||
|
||||
) noexcept;
|
||||
static bool isMinkowskiFace (const SHVec3& a, const SHVec3& b, const SHVec3& c, const SHVec3& d) noexcept;
|
||||
|
||||
/*
|
||||
* TODO:
|
||||
|
|
Loading…
Reference in New Issue