From bc79d08bbd7faff4443b6612a54027688b835b90 Mon Sep 17 00:00:00 2001 From: spatialfree Date: Mon, 16 Dec 2024 07:12:44 -0500 Subject: [PATCH] convert revolver shot to ray data type --- src/Arts.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Arts.cs b/src/Arts.cs index 77b4a42..aaa9565 100644 --- a/src/Arts.cs +++ b/src/Arts.cs @@ -152,9 +152,13 @@ static class Arts Quat rvolv_ori = Rig.l_aim.orientation; Vec3 rvolv_pos = Rig.l_aim.position; - Lines.Add( + Ray ray = new( rvolv_pos, - rvolv_pos + rvolv_ori * V.XYZ(0, 0, -10), + rvolv_ori * Vec3.Forward + ); + Lines.Add( + ray, + 10.0f, // [!] hardcoded design value Color.Hex(0xF9BF05FF).ToLinear(), U.cm );