Gun model is stuck in recoil position
Opened this issue · 5 comments
Hi, is the target_object assigned to the correct object in the Inspector?

I just tested it out on a fresh project and it seems to work fine. Here's my Node setup:

The Weapon Base is just an empty Node3D that acts as a holder for the Weapon Mesh itself. On the Recoil Handler script, I assign the Target Object as the Weapon Mesh:

Try setting the Lerp Speed to around 10 and then tweaking the values from there.
I think i fixed it. The beginning and end of the curve weren't set to 0
I'm stuck again on this. It seems like the model won't return to it's previous position again. I have all my curves starting and ending at zero, but my models still end up way past where they originally started.

gunmesh holds the script, and it's straight from the repo, without any edits.
the model starts here before the recoil is applied:

but it ends up way out here and never returns to it's initial position

i have no idea what's going on, any help would be appreciated.
i partially fixed it by having the model be a child of the node that has the recoil script, but it's still janky if the value descends below -1


