Reset view

This commit is contained in:
Synthasmagoria 2026-08-27 12:56:28 +02:00
commit 07732bd2ae
3 changed files with 26 additions and 6 deletions

View file

@ -189,3 +189,11 @@ animation_draw :: proc(animation: Animation, global_transform: mat3) {
}
}
}
animation_get_center :: proc(animation: Animation) -> v2 {
switch animation.type {
case .Rectangle:
return linalg.lerp(animation.shapes.rectangle.tl, animation.shapes.rectangle.br, v2(0.5))
}
unreachable()
}