diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-08-06 17:12:18 -0600 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-08-06 17:12:18 -0600 |
commit | 0fae2327bbb24572f5c40236dcdaba4f4f8afb80 (patch) | |
tree | edc36da854b597ecd5cb1b645c92abadf5824067 /src/entities | |
parent | 0e3f2f54c73ea3d473c38159dcb180eeb7988f4b (diff) |
Fixed the stupid mouse thingy
Diffstat (limited to 'src/entities')
-rw-r--r-- | src/entities/antifaShip.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |