Techneck/code/source-c/physics/aabb.c

17 lines
438 B
C
Raw Normal View History

2023-10-15 08:21:36 +00:00
#include "primitives.h"
tc_physics_mesh_s tc_wrap_aabb(tc_vec3f_s start, tc_vec3f_s size)
{
tc_aabb_s aabb;
aabb.start = start;
aabb.size = size;
tc_physics_mesh_s mesh;
mesh.num_primitives = 1;
mesh.value.simple.primitive.type = TC_PRIMITIVE_AABB;
mesh.value.simple.primitive.data.aabb = aabb;
return mesh;
}
2023-10-15 08:21:36 +00:00