Okabintaro / SubmersedVR

A Subnautica VR mod aiming to bring full motion controler support and common VR mechanics to the game.
MIT License
185 stars 10 forks source link

Upper Body IK #5

Open Okabintaro opened 1 year ago

Okabintaro commented 1 year ago

Instead of showing just hands, we could should try to show the full body of the player by tweaking the IK to feel good in VR. This should probably be a toggle. and should be placed in VRHands.

Since Subnautica doesn't ship with VRIK from FinalIK we need to see how it could be done without it.

This could work(idea from @galister):

Idea: From @galister

  • FullBodyBipedIK for body. you don't necessarily need to configure hand targets or the such
  • LimbIK for shoulder-elbow-wrist. with target rotation weight=0 (so wrist rotation is free)
  • AimIK for wrist rotation, but you can also probably just rotation constrain it to the controller object

slap these in order into an "IK Execution Order" component (edited), so the IK execution order will look like this:

  • FullBodyBipedIK
  • LimbIK (left)
  • LimbIK (right)
  • AimIK (left)
  • AimIK (right)
Okabintaro commented 1 year ago

I looked at this a bit more recently. Together with the adjusted hand/target transforms it works a bit better when you enable the IK, even without the mentioned custom IK components.

One major problem though is that the viewpoint/eye position is too far in front of the players head when on land and not using the PDA.

This makes it so you can't reach far enough with your hands. It seems like the actual animation from the player_view animator causes the viewpoint to move.

Another thing is that the elbow rotation is a bit weird, and the wrist twists weirdly on one hand but I think that could be fixed/improved.

reapermaster43 commented 10 months ago

When will it be out?