void render() const noexcept{
Vector2 dir = (Vector2Length(velocity) != 0) ? Vector2Normalize(velocity) : Vector2{1, 0};
float degAngle = std::atan2(dir.y, dir.x) * TO_DEG;
DrawPoly(position, 3, globalConfig.size, degAngle, globalConfig.color);
//DrawCircle(static_cast<int>(position.x), static_cast<int>(position.y), 1, BLACK);
}
Comments
0 B
|0 👍
/0 👎
0 B
|👍
/👎