From 35e3a813f29c5365672090aba090780029e4f43e Mon Sep 17 00:00:00 2001 From: spatialfree Date: Thu, 14 Nov 2024 13:51:06 -0500 Subject: [PATCH] scale in box at start using game time --- src/Arts.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Arts.cs b/src/Arts.cs index ac74822..b6a5059 100644 --- a/src/Arts.cs +++ b/src/Arts.cs @@ -65,7 +65,9 @@ static class Arts ); // box - Hierarchy.Push(Mono.box_pose.ToMatrix(Mono.box_scale)); + // scale in + float box_scale = Maths.min(Maths.smooth_stop((float)Mono.game_time) * Mono.box_scale, Mono.box_scale); + Hierarchy.Push(Mono.box_pose.ToMatrix(box_scale)); // meshes["InsideOut"].Draw(mat_unlit, Matrix.Identity); meshes["InsideOut"].Draw( mat_box,