/
Zamar_Terrier
/
TigorEngineWeb
Обзор
Документация
Войти
/
Zamar_Terrier
/
TigorEngineWeb
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
includes/std_intersect.h
87 строк
1 KB
Ilia Zamaruev
fix engine for mobile platforms
27 окт 2025, 12:10
27 окт 2025, 12:10
8f7c36e
Код
Авторство
О чём код?
#ifndef STD_INTERSECT_H #define STD_INTERSECT_H #include "engine_includes.h" #include "e_math.h" #ifdef __cplusplus extern "C" { #endif typedef struct{ vec3 position; float radius; float height; } InterCapsuleParam; typedef struct{ vec2 center; float radius; } InterCircleParam; typedef struct{ vec3 center; float radius; } InterSphereParam; typedef struct{ vec3 position; vec3 normal; } InterPlaneParam; typedef struct{ vec2 position; vec2 size; } InterSquareParam; typedef struct{ vec3 position; float size; } InterAABBParam; typedef struct { vec3 center; // OBB center point vec3 axes; // Local x-, y-, and z-axes vec3 halfwidth; // Positive halfwidth extents of OBB along each axis } InterOBBParam; typedef struct{ vec2 position; vec2 direction; float distance; } InterRay2DParam; typedef struct{ vec3 position; vec3 direction; float distance; } InterRay3DParam; typedef struct{ vec2 p1; vec2 p2; vec2 p3; } InterTriangleParam; typedef struct{ vec2 simplex[3]; uint32_t count; void *obj1; void *obj2; vec2 (*support1)(void *, vec2); vec2 (*support2)(void *, vec2); } GJKObject; typedef enum{ NoIntersection, FoundIntersection, StillEvolving }EvolveResult; #ifdef __cplusplus } #endif #endif // STD_INTERSECT_H