Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by matomatrica · Nov 30, 2020 at 03:52 PM · vroculusinverse kinematicbodypls

VR body IK mimicking problem (searching for help).

Hello, i was hoping it would be possible to maybe find some help on this reddit page with solving task that i cant fully wrap my head around. I am no really experianced in coding nor would i consider my slef even amateur at it.

The problem: I am trying to find a solution of how to transfer VR inverse kinematics tracking on to an independent character model, to make it appear as if the character is mimicking the movement of the player.

alt text

footage from Valem's "What i learned making a VR game in 7 days"

(how the female charecter behaves in the GIF. is exactly what i am trying to achive. What Valem mantioned before showcasing this exact effect for a few seconds, is that this is an improvment from his preveos video series "making a body in VR". The video series is just a step by step on how to create Inverse Kinamatics for a charecter body in unity. I followed step by step his tutorial on how to make IK for a body, and got so far. But i have still no idea how to seperate the body and make it so that it follows the movments of the controllers but doesnt try to be in their exact possition) I went as far as to becom a patreon for valem in order to get his source code and unity projects hoping that what i am searching for would be there. But to my suprise, this part of making a charecter model mimic the players movments is completley skipped, even in the source files from the video "What i learned making a VR game in 7 days" contain no explanation how this could be achived. Ive also tried contacting Valem as a patreon but three weeks passed by and there was no information provided. He achived this effect so quick in his video, that it makes me thin that the silution must be actually pretty simple. Maby, somhow reasigning the tracking information on to a new center point. But i really struggle to understand how can that be done. This is the IK code that ive replicated from Valem's tutorials on how to achive IK using unitys animation rigging pacage:

 using UnityEngine;
 
 [System.Serializable]
 public class VRMap
 {
 
     public Transform vrTarget;
     public Transform rigTarget;
     public Vector3 trackingPositionOffset;
     public Vector3 trackingRotationOffset;
 
     public void Map()
     {
         rigTarget.position = vrTarget.TransformPoint(trackingPositionOffset);
         rigTarget.rotation = vrTarget.rotation * Quaternion.Euler(trackingRotationOffset);
     }
 }
 
 public class VRRig : MonoBehaviour
 {
     [Range(0,1)]
     public float turnSmoothness = 1;
     public VRMap head;
     public VRMap leftHand;
     public VRMap rightHand;
 
 
 
 
     public Transform headConstraint;
     private Vector3 headBodyOffest;
 
     void Start()
     {
         headBodyOffest = transform.position - headConstraint.position;
        
     }
 
     void FixedUpdate()
     {
         transform.position = headConstraint.position + headBodyOffest;
         transform.forward = Vector3.Lerp(transform.forward,
          Vector3.ProjectOnPlane(headConstraint.up,Vector3.up).normalized, turnSmoothness);
 
         head.Map();
         leftHand.Map();
         rightHand.Map();
     }
 }

The code makes this panel appear in the inspector:

alt text

I was hoping to ask for help in this community, maybe someone knows the solution of how to separate the characters model from the OVRPlayerController and assign a new custom location where characters body would stay stable, but still would replicate exactly what the player is doing in virtual space. This mechanic is needed for an art diploma hapening very soon (hens why ive trunned to asking for help everyone that might stumble upon this). I look forward to any input to put this problem in the past. Bless you and have a nice day.

screen-recording-2020-11-30-at-130835-6.gif (253.2 kB)
screenshot-2020-11-30-at-123032.png (115.2 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

257 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Does anyone know of any documentation about this effect? 1 Answer

Unity 5.2 VR Camera Problem 0 Answers

How can I ignore the head-controlled gaze pointer and just use the oculus go controller? 0 Answers

Setting a gameObject active when a button is pressed 2 Answers

UI flickering when in VR 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges