From 5ac225a7127ed18e017f87b634a808f7edbc6b9f Mon Sep 17 00:00:00 2001 From: ikpil Date: Thu, 14 Sep 2023 23:10:06 +0900 Subject: [PATCH] update _viewMatrix in DebugDraw --- src/DotRecast.Recast.Demo/Draw/DebugDraw.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DotRecast.Recast.Demo/Draw/DebugDraw.cs b/src/DotRecast.Recast.Demo/Draw/DebugDraw.cs index 8365bca..34f525c 100644 --- a/src/DotRecast.Recast.Demo/Draw/DebugDraw.cs +++ b/src/DotRecast.Recast.Demo/Draw/DebugDraw.cs @@ -648,6 +648,7 @@ public class DebugDraw t.M42 = -cameraPos.y; t.M43 = -cameraPos.z; var mul = RcMatrix4x4f.Mul(r, t); + mul.CopyTo(_viewMatrix); GetOpenGlDraw().ViewMatrix(ref mul); UpdateFrustum(); return mul;