feat: clampLength for Vector2 extension (#2190)

With this method you can clamp the length of a vector, instead fitting it in a box like clamp and clampScalar does.
This commit is contained in:
Lukas Klingsbo
2022-11-25 15:36:18 +01:00
committed by GitHub
parent e289f118ee
commit 51a896b2c8
3 changed files with 38 additions and 0 deletions

View File

@ -32,6 +32,7 @@ class IsometricTileMapExample extends FlameGame with MouseMovementDetector {
@override
Future<void> onLoad() async {
debugMode = true;
final tilesetImage = await images.load('tile_maps/tiles$suffix.png');
final tileset = SpriteSheet(
image: tilesetImage,