17 lines
438 B
C
17 lines
438 B
C
#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;
|
|
}
|
|
|