Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement