20 #include "linmath/float4x4.h" 24 bool octreeOctreeIntersection(
Octree *object1Octree,
25 chag::float4x4 *object1ModelMatrix,
27 chag::float4x4 *object2ModelMatrix);
29 bool AabbAabbintersection(
AABB *aabb1,
AABB *aabb2);
33 AABB multiplyAABBWithModelMatrix(
AABB *aabb, chag::float4x4 modelMatrix);
37 bool isTrianglesIntersecting(
Octree *object1Octree,
38 chag::float4x4 *object1ModelMatrix,
40 chag::float4x4 *object2ModelMatrix);
42 bool rayTriangle(chag::float3 r_o, chag::float3 r_d, chag::float3 v1, chag::float3 v2, chag::float3 v3,
float *ins);
virtual void updateCollision(Scene *scene)=0