aboutsummaryrefslogtreecommitdiff
path: root/src/entity.c
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-12-23 17:04:05 -0700
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-12-23 17:04:05 -0700
commitf439828dc068974ddc161cc3469ac489a93bbabc (patch)
tree1d74af0b59744a17ba73716d91196922d3843859 /src/entity.c
parent2c046ef3dca9e128a801c7a92c3a3a63e01fdd98 (diff)
Working on the web assembly openglES issue
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/entity.c b/src/entity.c
index a44220a..f36c941 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -368,14 +368,7 @@ RayCollision traceRayToEntityRadius(Entity entity, Ray ray, float scale) {
// Basic wireframe drawing.
void entityDraw(Entity * entity) {
- entity->model->transform = QuaternionToMatrix(entity->rotation);
-
- DrawModelWires(
- *entity->model,
- entity->position,
- 1.0,
- GREEN
- );
+ drawModelWireframe(*entity->model, entity->position, entity->rotation, GREEN);
}
void entityUpdatePosition(Entity * entity) {