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