4#ifndef TRAM_SDK_PHYSICS_COLLISIONSHAPE_H
5#define TRAM_SDK_PHYSICS_COLLISIONSHAPE_H
84 return {
SHAPE_BOX, dimensions.x, dimensions.y, dimensions.z};
Shape
Definition: collisionshape.h:11
@ SHAPE_CONE
Definition: collisionshape.h:15
@ SHAPE_SPHERE
Definition: collisionshape.h:12
@ SHAPE_CAPSULE
Definition: collisionshape.h:14
@ SHAPE_MESH
Definition: collisionshape.h:18
@ SHAPE_BOX
Definition: collisionshape.h:16
@ SHAPE_HULL
Definition: collisionshape.h:17
@ SHAPE_CYLINDER
Definition: collisionshape.h:13
glm::vec3 vec3
Definition: math.h:12
Definition: collisionshape.h:25
float radius_x
Definition: collisionshape.h:32
static CollisionShape Cylinder(float radius, float height)
Definition: collisionshape.h:71
static CollisionShape Sphere(float radius)
Definition: collisionshape.h:67
float height
Definition: collisionshape.h:37
static CollisionShape Box(vec3 dimensions)
Definition: collisionshape.h:83
float radius
Definition: collisionshape.h:31
float extent_x
Definition: collisionshape.h:33
size_t hull_size
Definition: collisionshape.h:49
vec3 * hull_points
Definition: collisionshape.h:48
static CollisionShape Cone(float radius, float height)
Definition: collisionshape.h:79
CollisionTriangle * mesh_triangles
Definition: collisionshape.h:53
float extent_z
Definition: collisionshape.h:42
static CollisionShape Hull(vec3 *points, size_t size)
Definition: collisionshape.h:87
float radius_z
Definition: collisionshape.h:43
float extent_y
Definition: collisionshape.h:38
static CollisionShape Mesh(CollisionTriangle *triangles, size_t size)
Definition: collisionshape.h:91
Shape type
Definition: collisionshape.h:26
size_t mesh_size
Definition: collisionshape.h:54
static CollisionShape Capsule(float radius, float height)
Definition: collisionshape.h:75
Definition: collisionshape.h:21
vec3 p2
Definition: collisionshape.h:22
vec3 p1
Definition: collisionshape.h:22
vec3 p0
Definition: collisionshape.h:22