ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.04k stars 259 forks source link

Longbow BowArrow transform issue when fired #1106

Open SebastianAtW5 opened 10 months ago

SebastianAtW5 commented 10 months ago

I've recently tested the updated version of the SteamVR_plugin 2.8.0 (sdk 2.0.10) in the Interactions_Example scene with Unity version 2022.2.15f.

When I shot the longbow, the first arrow behaved as expected. However, subsequent arrows disappeared and spawned at completely different locations.

To resolve this issue, I had to comment out all instances of Util.ResetTransform(arrow.transform) in the ArrowHand.cs script. This included both the InstantiateArrow function and the HandAttachedUpdate function. By doing this, the arrows maintained the correct transform when fired from the longbow.

Arrows fired at the same location. See pictures

with_Utils without_utils