From 0fae2327bbb24572f5c40236dcdaba4f4f8afb80 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Sun, 6 Aug 2023 17:12:18 -0600 Subject: Fixed the stupid mouse thingy --- src/entities/antifaShip.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/entities/antifaShip.c') diff --git a/src/entities/antifaShip.c b/src/entities/antifaShip.c index f9c9867..6e8c239 100644 --- a/src/entities/antifaShip.c +++ b/src/entities/antifaShip.c @@ -14,7 +14,7 @@ void initAntifaShip(Entity * entity, Game * game) { entity->acceleration = (EntityAcceleration){ .speedUp = 30.0, .speedDown = 15, - .rotation = (Vector3){2.0, 2.0, 2.0} + .rotation = (Vector3){2000000.0, 2000000.0, 2000000.0} }; // Set Data pointer. @@ -26,7 +26,7 @@ void initAntifaShip(Entity * entity, Game * game) { } AntifaShip * data = (AntifaShip*)entity->data; - data->lastMouse = Vector2Zero(); + data->lastMouse = GetMousePosition(); data->forwardSpeed = 0.0; } @@ -99,8 +99,6 @@ void controlAntifaShipKeyboardAndMouse(Game * game, Entity * entity) { mouseStick.z = -mouseStick.y; mouseStick.y = 0.0; } - - printVector2(v); entityJoystickControl(entity, mouseStick, data->forwardSpeed); } -- cgit v1.2.3