From 05311679765f70465a3773a7f678e20bddb55d1a Mon Sep 17 00:00:00 2001 From: spatialfree Date: Mon, 25 Nov 2024 12:48:47 -0500 Subject: [PATCH] use aim pose instead for fullstick --- Platforms/Android/AndroidManifest.xml | 4 ++-- src/Rig.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Platforms/Android/AndroidManifest.xml b/Platforms/Android/AndroidManifest.xml index 7bd76ee..e1e641e 100644 --- a/Platforms/Android/AndroidManifest.xml +++ b/Platforms/Android/AndroidManifest.xml @@ -2,8 +2,8 @@ diff --git a/src/Rig.cs b/src/Rig.cs index 058080e..155174e 100644 --- a/src/Rig.cs +++ b/src/Rig.cs @@ -55,9 +55,9 @@ static class Rig Vec2 stick = r_con.stick; Quat stick_rot = Quat.FromAngles(stick.y * -90, 0, stick.x * +90); float stick_sign = r_con.IsStickClicked ? -1 : +1; - r_con_stick = r_con.pose; - r_con_stick.position += r_con_stick.orientation * V.XYZ(0.0065f, -0.012f, -0.05f); - r_con_stick.orientation *= Quat.FromAngles(-50, 0, 0); + r_con_stick = r_con.aim; + // r_con_stick.position += r_con_stick.orientation * V.XYZ(0.0065f, -0.012f, -0.05f); + // r_con_stick.orientation *= Quat.FromAngles(-50, 0, 0); fullstick = r_con_stick.orientation * stick_rot * Vec3.Up * stick_sign; // Vec3 fullstick = r_hand.palm.orientation * Vec3.Up;