Change so it spins around pointer

This commit is contained in:
Nikola Petrov
2024-04-01 21:10:25 +02:00
parent e62b0eb6bf
commit b87dd4203b
4 changed files with 45 additions and 20 deletions

View File

@@ -20,4 +20,8 @@ private:
float rotation = 0.0f;
Rectangle destB;
Rectangle destA;
Vector2 mouseStart;
float len;
float ofset;
};

View File

@@ -1,4 +1,5 @@
#include "raylib.h"
Color ColorLerp(Color c1, Color c2, float amount);
Rectangle CalculateRect(Vector2 center, float rotation, float width, float height);
Vector2 calculateVector(float rotation, float offSet, float len);
Rectangle calculateRotatedRectangle(Vector2 center, float rotation, float width, float height);