How to Make Physics Hands in VR - PART 1 - Unity VR Tutorial

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 179

  • @hunorio
    @hunorio 2 роки тому +16

    MOM WAKE UP VALEM POSTED A PHYSICS TUTORIAL

  • @zillieness
    @zillieness 2 роки тому +8

    Both of these videos were super helpful and worked for me almost a year later. Thank you, Valem!! If anyone is using a Character Controller (which has a collider) on their XR Origin, you might notice your hands are hitting the invisible collider. I fixed this by putting the XR Origin on its own layer ("Player") and went to Edit > Project Settings > Physics, and under the Layer Collision Matrix, unchecked "Player" from both of the Left and Right Hand Physics.

  • @christianmccauley7340
    @christianmccauley7340 2 роки тому +22

    This might just be a me thing, but I often use your tutorials to help me learn not just what needs to be done, but why we do things when programming. It might be helpful if you were to go into short explanations on some parts of each script that might be a little more on the esoteric side. Idk if that tracks but it’d be awesome! Totally gonna follow this tutorial for my game btw this is killer

    • @ValemTutorials
      @ValemTutorials  2 роки тому +10

      Thanks man I really appreciate your feedback. Its sometimes hard to explain what goes on in a script as there is so many hidden details that goes outside the scope of the tutorial but I try my best at finding the good balance. I'm glad to have people like you that enjoy these kinds of explanation :p

  • @agostinodomanico6067
    @agostinodomanico6067 11 місяців тому

    You are the only person on youtube that actually shows everything, step by step, you are incredible, keep it up!

  • @Kazumo
    @Kazumo 2 роки тому +3

    Omg, this was what I would have needed the most back a while ago! Glad to see you tackling it finally.

  • @tarastester5712
    @tarastester5712 3 місяці тому

    I just wanted to say thanks, since that's exactly the package I was looking for!
    It gives a great start for any type of VR project for development/testing purposes.
    My gratitude!

  • @MuhammadUsman-yq8je
    @MuhammadUsman-yq8je 2 роки тому +1

    Thank you so much for this! I use the Oculus integration sdk for my VR development but I often come to your videos to learn concepts. You're the best Valem!

  • @genofelice6034
    @genofelice6034 Рік тому +3

    Hello: I have been trying to follow your tutorial but using Action Based Controller as opposed to Device Based. All works well with Device based but can't get Physics hands to track using Action based controller. Any thoughts? Thanks

  • @izzahmajid4010
    @izzahmajid4010 2 роки тому +1

    For those who cannot see their hands in unity, you need to enable hands in settings>experimental features

    • @dawaysss7987
      @dawaysss7987 2 роки тому

      What settings project settings?

  • @lukasstryg3688
    @lukasstryg3688 2 роки тому +2

    Would you be able to make an updated Full Body tutorial with the XR Toolkit? Because I can't get the custom hands to work with a custom body (Part 4 from your Patreon) when I use XR

  • @SequornS
    @SequornS 5 місяців тому +1

    How would you go about doing this with the new Meta All in One SDK?

  • @Sharkz-iz6yf
    @Sharkz-iz6yf 2 роки тому +6

    @Valem Tutorials
    when i flip my hands over they turn the other way, how can i fix this?

    • @bobjrgeorge4577
      @bobjrgeorge4577 Рік тому

      I know its been a while but did you find a fix

    • @Sharkz-iz6yf
      @Sharkz-iz6yf Рік тому +1

      @@bobjrgeorge4577 no

    • @-cursed-
      @-cursed- Рік тому +1

      replace
      rb.angularVelocity = rotationDifferenceInDegrees * Mathf.Deg2Rad / Time.fixedDeltaTime;
      With
      if (angleInDegree > 180)
      {
      rb.angularVelocity = -rotationDifferenceInDegrees * Mathf.Deg2Rad / Time.fixedDeltaTime;
      }
      else
      {
      rb.angularVelocity = rotationDifferenceInDegrees * Mathf.Deg2Rad / Time.fixedDeltaTime;
      }
      hope that helps :)

    • @3d-action
      @3d-action Рік тому

      @@-cursed- gives me an error

  • @FoxyTitan
    @FoxyTitan 2 роки тому +3

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class Handphysics : MonoBehaviour
    {
    public Transform target;
    private Rigidbody rb;
    // Start is called before the first frame update
    void Start()
    {
    rb = getcomponent();
    }
    // Update is called once per frame
    void FixedUpdate()
    rb.velocity = (target.position - Transform.position) / time.fixedDeltatime;
    {

    }
    }

  • @davidson4101
    @davidson4101 2 роки тому +1

    it turned out really cool 😎

  • @vrdevman2785
    @vrdevman2785 2 роки тому +2

    Please make video about sword that you can stab though something like in the walking dead

  • @arthurisdumb8820
    @arthurisdumb8820 2 роки тому +3

    Love your content, helps me all the time but, can you make a tutorial on enemies in VR?

  • @daryladhityahenry
    @daryladhityahenry 2 роки тому +2

    Hi. Do you know how to make our hand physics behave like real skin? I mean, it absorbs and kind of squishy when interact with object. Is it possible? Thanks

  • @leastpark2577
    @leastpark2577 2 роки тому +4

    I noticed when I rotate my hands fast, the hand models need catch up with the rotation, may you give me any advice on how to fix it? thanks!

    • @pinkshrimpstudio5831
      @pinkshrimpstudio5831 2 роки тому +3

      I know its a bit of a late reply, I've seen lots of other people with this problem (including myself) so hopefully this helps others. What worked for me was dragging the whole Left Hand Physics Presence object into the LeftHand Controller (same place where the Left Hand Presence should be). Do the same for the right hand and that might help.

    • @benito2483
      @benito2483 2 роки тому +4

      What fixed it for me, is that Unity has a defaultMaxAngularSpeed set for all rigidbodies in the Physics settings. You can either modify that or change it only for specific Rigidbodies via code using "GetComponent().maxAngularVelocity = 20;" for example.

  • @judahhanes
    @judahhanes Рік тому

    this worked so well, thank you. I really like how you put so much time into this.

    • @judahhanes
      @judahhanes Рік тому

      I have one question I did the sc. for the rotation but when I go to a weird position in game it rotates and I just can figure out why. do you have a solution?

  • @魏衛尉
    @魏衛尉 2 роки тому +1

    Excuse me. Does it work if I use the Action-based XR Controller? Because I did step by step but the hands model did't follow the hands controller.

  • @ruihan6583
    @ruihan6583 2 роки тому +1

    I wonder why not drag the model to "LeftHand Controller-XR Controller(Device-based)-Model-Model Prefab"? what is the different?

  • @jimmychen0123
    @jimmychen0123 2 роки тому

    Huge thanks for making those content!!

  • @elvidde9201
    @elvidde9201 2 роки тому +1

    Hey, how do I make the "RIghtHand Controller" object reference the physics presence when moving it outside the XR Rig component? I've already tried to set the "Model prefab" variable to the physics presence but it doesn't work; Can you please help me?

  • @Salmontoes
    @Salmontoes 9 місяців тому +1

    whenever i try selecting both of the hands using control, unity crashes

  • @3d-action
    @3d-action Рік тому +4

    HandPresencePhysics script:
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class HandPresencePhysics : MonoBehaviour
    {
    public Transform target;
    private Rigidbody rb;
    // Start is called before the first frame update
    void Start()
    {
    rb = GetComponent();
    }
    // Update is called once per frame
    void FixedUpdate()
    {
    rb.velocity = (target.position - transform.position) / Time.fixedDeltaTime;

    Quaternion rotationDifference = target.rotation * Quaternion.Inverse(transform.rotation);
    rotationDifference.ToAngleAxis(out float angleInDegree, out Vector3 rotationAxis);
    Vector3 rotationDifferenceInDegree = angleInDegree * rotationAxis;
    rb.angularVelocity = (rotationDifferenceInDegree * Mathf.Deg2Rad / Time.fixedDeltaTime);
    }
    }

  • @_Sonato
    @_Sonato 2 роки тому

    ooo nice, I'ma gonna have to watch this.

  • @chenjunkai5880
    @chenjunkai5880 3 місяці тому

    Hi, Thank you so much for this great help! One small quick question, are these assets from Google Drive free to use for business?

  • @hunscripter635
    @hunscripter635 Рік тому

    Great vid! I used a quest 2, and it worked, HOWEVER!- there is a problem, in the game if I rotate my hands a bit fast, than i will see my hands slooowly rotate to the real place of my hands...

  • @lsdevelopment7055
    @lsdevelopment7055 2 роки тому +1

    Hi Valem. Your awesome content. I am a new VR developer. Do I have a situation where I can only open apps I developed in VR without uploading them to the store, and "except those from unknown sources (without developer apk)"? For example, you did business with a company. You will deliver 10 VR Headset, they all have the same application. Is there a workspace that only employees of that company will see without installing apps(App Lab etc)? (for Oculus Quest-2)

  • @erikmeurk5902
    @erikmeurk5902 2 роки тому

    When adding the hands with all the colliders and building the app to the Quest 2 I get a lot of performance issues when interacting with different objects. Do you have any tips on how to improve performance but still have nice physics? Great tutorials btw, I love your content.

  • @sergioml2000
    @sergioml2000 2 роки тому

    Very good video, I have done what you say, but my hands keep going through the objects, why?

  • @Betruet
    @Betruet 2 роки тому +1

    Thanks mate :)

  • @azghanm
    @azghanm 2 роки тому

    hello, i ahave a problem. you are not explaining in this tutorial which setup of XR you have. i am currently working with the oculus Asset and using a "oculusinteractionsamplerig" and you the XR interaction manager + xr origign, and i am still trying to figure out to apply this. other than that i love how you explain.

  • @MaxDolotboy
    @MaxDolotboy 2 роки тому +1

    Hey, thanks for your tutorial, the collision with non rigidbody object seems to works perfectly fine, the only thing is that my hand are spining like crazy when I set them to non kinematic, even if I made the script, I added the script as a component to them and I correctly set the target. I'm kinda lost, I followed exactly the tutorial.

    • @TheGamerzXChannel
      @TheGamerzXChannel 2 роки тому

      Same here, did you solve the issue?

    • @MaxDolotboy
      @MaxDolotboy 2 роки тому

      @@TheGamerzXChannel No unfortunatly I didn't. But I might change for the asset package Auto Hand Positionning

  • @danielericcardo9180
    @danielericcardo9180 Рік тому

    hi! thanks amazing tutorial, but if I have controller in the project and want to hide or alternate btw hands and controller how can I do?

  • @Etredal
    @Etredal 2 роки тому

    Super useful!

  • @Revelation2106
    @Revelation2106 2 роки тому +6

    I'm having an issue where the hands rotate the wrong way on some axis'. For example, moving the left hand using only my wrist on the Z axis towards myself causes the hand to flip forwards into position instead of backwards. I think this is an issue with the angular velocity calculation being negative in some cases. Has anyone else had this issue and managed to fix it?
    EDIT: Fixed it! If anyone else has this problem then add rb.maxAngularVelocity to the Start function of the HandPresencePhysics script and set it to be something high like 200.

    • @goober4721
      @goober4721 2 роки тому

      i have the same problem, how do i change rb.maxAngularVelocity to 200?

    • @W1nt3rUSEC
      @W1nt3rUSEC 2 роки тому +1

      Damn bruh, Thanks for the tip.

    • @W1nt3rUSEC
      @W1nt3rUSEC 2 роки тому +1

      @@goober4721 inside the Start function just write rb.maxAngularVelocity = 200;

    • @TheGamerzXChannel
      @TheGamerzXChannel 2 роки тому

      Damn dude, i'd buy you beer if I knew you. YT comments section needs more people like you!

    • @luigiplayer1547
      @luigiplayer1547 2 роки тому

      If I wAsN`S tHe MaN i WaS i WoUlD kIsS yE

  • @wompingdroid
    @wompingdroid Рік тому

    I NEED HELP!! My object (currently a sphere not a hand) has its ridged body work properly but it looks like it foes through the block. I dont think that the mesh is binded to the ridged body or something

  • @mesmes9424
    @mesmes9424 2 роки тому

    Thank you. Does the Physics settings you set (physics, fixed timestep) would work properly in Oculus quest app?

  • @rickybobbyracing9106
    @rickybobbyracing9106 2 роки тому +1

    This video is awesome! I'm excited to try out and learn more about VR location of hands vs physical location of hands, I feel like that could be used to force players to do things like mimic being pushed down, and having to like, crouch down in real life to pick your hands back up.

  • @ayoadeadeyemi01
    @ayoadeadeyemi01 Рік тому

    @Valem Tutorials will this be able to work with the oculus hands just like the HPTK video you did?

  • @joseantonioirrelevante1982
    @joseantonioirrelevante1982 7 місяців тому

    Hello. I need a Unity project to install on my Oculus Quest 2, so that I can connect a pen drive to them and from the Oculus Quest 2 I can access said pen drive. Do you have any videos on the channel to do this? Thank you.

  • @thewalfordbros1210
    @thewalfordbros1210 2 роки тому +1

    @Valem Tutorials I copied your video exactly and I am on 2021.3 something but at the end of the video when I pick up a object my hands start rotating a lot. Could you pls help me fix this.

  • @aash3529
    @aash3529 2 роки тому

    HI love all your videos excellent work as always .. I seem to have a problem I've followed everything perfectly but I still seem to have 2 sets of hands when I grip I can still see the old static hands. I did uncheck them but can't seem to remove them?

  • @serpnta1267
    @serpnta1267 2 роки тому

    Very nice!!!

  • @janisberzins7296
    @janisberzins7296 2 роки тому +1

    Is there a way to smooth the rotations of the hand? It's really snappy and jittery.

    • @learninggodot
      @learninggodot Рік тому

      you might wanna use lerp or slerp, it's a cool function you could use for smoother movement

  • @batistagc
    @batistagc 5 місяців тому

    This tutorial helped me a lot, But I couldn't apply the rigidbody, my hands keep falling on the ground when I turn off the kinematic property. Does anyone knows how to fix it?

  • @rickybobbyracing9106
    @rickybobbyracing9106 2 роки тому

    What documentation should read? You referenced reviewing the documentation, any thoughts on what I should review? Some of this is hard to find.

    • @ValemTutorials
      @ValemTutorials  2 роки тому +1

      I was talking about this doc : docs.unity3d.com/Manual/class-PhysicsManager.html

    • @rickybobbyracing9106
      @rickybobbyracing9106 2 роки тому

      @@ValemTutorials Thank you so much!!

  • @fashvr9961
    @fashvr9961 Рік тому

    Hey valem. is it possible to combine this with two bone ik? i dont want to judt put a rigid body and collider on the target and move the target because the colliders on the hands are more accurate

  • @carp4788
    @carp4788 Рік тому

    I have a problem with the hands, when I rotate them, at some point they do a strange rotation to return to the original, what can I do?

  • @ethanjamesbarron
    @ethanjamesbarron 2 роки тому +1

    Instead of instantly snapping to my hands rotation the angular velocity kind of linearly goes to it. How can I fix this? Is it because I'm using Time.FixedDeltaTime and haven't given it a higher or lower value?

    • @Pursuer07
      @Pursuer07 2 роки тому +2

      Remove everything under //rotation and instead use rb.rotation = target.rotation;

  • @tompainter7167
    @tompainter7167 Рік тому

    I tried this today with a scene I made following your 3 part quest 3 MR Tutorial and the OVRCameraRig hierarchy used there is so different that I couldn’t get it working , I tried to copy this and adapt where I could but utilise didn’t work. Could you add part 4 to the mixed really tutorial where you can pick up and throw the red balls? Or maybe you gave some quick advice? Thanks

    • @ValemTutorials
      @ValemTutorials  Рік тому +1

      Hi Tom, thats a great idea I'll see if I can make a tutorial about using mixed reality with oculus interaction system

    • @tompainter7167
      @tompainter7167 Рік тому

      @@ValemTutorials oh wow thanks so much that would be great 👍

    • @tompainter7167
      @tompainter7167 Рік тому

      @@ValemTutorials I found on OVRHandPrefab there is a 'enable physics capsules' this gets the basics, I think I need to experiment though

  • @rushigaikwad7683
    @rushigaikwad7683 2 роки тому

    Hello sir..i love yours VR tutorials.....i got a problem that how can i make a image interactable just like we add simple interactable to box 3d and it gets make options like hover enter, hover exit

  • @hantyumitheconfusedcyb0rg102
    @hantyumitheconfusedcyb0rg102 2 роки тому

    when using the Hands prefab with Colliders the animations don't work, Animator is not playing an AnimatorController, but in fact it's equal to the prefab without Colliders, and they actually work, dunno

  • @OpenMicOpinions
    @OpenMicOpinions 2 роки тому +1

    whenever i try to use the hands to move an object, it goes right through it and i dont know what i have done wrong

    • @Chumpass
      @Chumpass 2 роки тому

      put rigid bodies on the hands

  • @llamallama1416
    @llamallama1416 2 роки тому

    hi i have a problem my hands arent lined up with my controller properly and i dont know how to fix

  • @coolcat1938
    @coolcat1938 2 роки тому

    hi can i have some help after i drag the hand with collider to hand pysics animation script its not making the hand with the collider animate

  • @maymoon1987
    @maymoon1987 2 роки тому +1

    Thank you for the tutorial. I have gotten to the first part of the script, but i have an issue where I have 4 hands in the game? 2 of them are spinning around the other 2 I don't know if that makes sense.

    • @vrictor
      @vrictor 2 роки тому

      its because you didnt disable the first hand prefabs (left hand presence)etc.. they should be grey blue and not shiny blue on the hierarchy.

    • @colinbexell5942
      @colinbexell5942 2 роки тому

      @@vrictor No i've got the same issue, there are like 2 hands PER HAND and i don't know what the issue might be since the Hand presence is turned off

  • @dedsec1175
    @dedsec1175 Рік тому

    i have a problem my hands do not align to the rotation of the controler its 90* off in both directions

  • @mehblah4205
    @mehblah4205 2 роки тому

    Hi so is the oculus hands physics package open source? Can I use it in my own, non-oculus Unity XR project? Who made the package?

  • @RitikAgarwal21
    @RitikAgarwal21 Рік тому

    Hi,
    For me this is working with controllers only. How can it work with Hands?

  • @zeroone0155
    @zeroone0155 2 роки тому +1

    The hand rotates at a certain angle exactly the opposite of the real thing. Is this a Unity Version problem?

    • @Need2pee
      @Need2pee 2 роки тому

      Multiply the rotation part with -1 if that's the case

  • @olivername
    @olivername Рік тому

    hi would this work for bows arrows climbing

  • @ashwanitms3387
    @ashwanitms3387 2 роки тому +1

    my hands are stationary and not moving with oculus what should i do ?

    • @ethanjamesbarron
      @ethanjamesbarron 2 роки тому +1

      Hey! Sorry just saw your comment lol. Basically what you're going to want to do is:
      If there isn't already a GameObject called "XR Interaction Manager" then make one and add the following scripts to it: XR Interaction Manager, Input Action Manager (make sure to give Input Action Manager the preset XRI Default Input Actions)

    • @ashwin4832
      @ashwin4832 2 роки тому

      @@ethanjamesbarron thanks 👍

    • @ethanjamesbarron
      @ethanjamesbarron 2 роки тому

      @@ashwin4832 Np

  • @NoaChiproot
    @NoaChiproot 2 роки тому +1

    The hands do not correlate to the controllers... They are not moving according to me they just lie on the floor. How can I fix it? I see more people having this problem- it happened after we took "physical hands" from their parents

    • @syafirarosa
      @syafirarosa 2 роки тому +2

      You have to uncheck "is Kinematic" on Left Hand Presence Physics Rigidbody. Don't forget the right one too:)

  • @fernandocgi3874
    @fernandocgi3874 2 роки тому

    Hey Valem, does the mesh collider works stead of using capsule colliders? ty

  • @xxtoxicbanditxx9930
    @xxtoxicbanditxx9930 2 роки тому

    why does you text like rigidbody turn into a different colour. Mine stays white

  • @Dem0VR
    @Dem0VR Рік тому

    I try to use the oculus physics thing I put it into unity and it gives me a bunch of errors any soulusion? oh yeah btw im useing 2022 verson and its the #c script thats fail pls help

  • @obvdrc
    @obvdrc 2 роки тому

    I've had issues with this angular velocity code causing errors that read out as "Input velocity is Vector {NaN, NaN, NaN}". Anyone else had something like that and maybe a solution? It doesn't seem to cause any actual gameplay issues but it is annoying

  • @COSMIC_CC_356
    @COSMIC_CC_356 9 місяців тому

    thank you for the tutorial this will help me so I am going to make my own realistic VR games and add one of my human 3D models as ragdolls and make this more immersive and real but I wont add realistic people but maybe I will add some realistic physics to one of my games and make it free and available to quest for free $0 without spending all of your money I can make a realistic free VR game for quest only it wont be available to PC anywise VR is going to be growing so I will try my VERY HARDEST to make a realistic game with realistic shaders it will be like VRChat and bone works and bone lab and down shot VR and Phin and project third eye VR and other multiplayer wont be supported and it will probably wont get updates it does not mean our game is dead
    we will figure out very very soon

  • @crealhiphop5808
    @crealhiphop5808 2 роки тому

    why does nobody add a point animation to their hands? Is essential in vr no? when you need to press button

  • @AlexOrzaez
    @AlexOrzaez 2 роки тому

    How can I get that XR Origin you have at the beginning???

  • @iercan1234
    @iercan1234 2 роки тому

    merci!

  • @joebow3357
    @joebow3357 2 роки тому

    dont know if anyone could help with this but the script isnt working im not sure what part of it is not working any fix?

  • @lance1519
    @lance1519 2 роки тому

    is it just me or the drive document broked? all prefabs are pink...

  • @cleancookies1908
    @cleancookies1908 2 роки тому +1

    Can someone send me the code for "HandPresencePhysiscs" (The one at 7:48). I wrote the code down but it doesn't work.

    • @haishigd943
      @haishigd943 2 роки тому

      make sure that rigidbody isn't kinematic

  • @guimaxime5117
    @guimaxime5117 2 роки тому

    Thank you for your tutorial it help me a lot

  • @iercan1234
    @iercan1234 2 роки тому +2

    i fixed the wrong axis hands with this:
    Quaternion postRotation = transform.rotation * Quaternion.Euler(0, 0, -90);
    Quaternion rotationDifference = target.rotation * Quaternion.Inverse(postRotation);

    • @AssaSingh
      @AssaSingh 2 роки тому

      Thank you for this, this fixed the rotation for the left hand - any idea how to do this for the right hand in the same script?

    • @georgehutchcocks9280
      @georgehutchcocks9280 Рік тому

      actual god send :D

  • @rich1734
    @rich1734 2 роки тому

    do you need a cable link for unity?
    because i dont have one.

    • @ValemTutorials
      @ValemTutorials  2 роки тому

      you can use the cable provided with the oculus quest I believe

  • @NexyDev
    @NexyDev Рік тому

    The rotation is still messed up for me, how do i fix this?

  • @XyndraNerd
    @XyndraNerd 2 роки тому +3

    This might just be me but my Hands are Stuck in the ground(0,0,0)

    • @istandcat5882
      @istandcat5882 2 роки тому

      same issue here, hands don't track

    • @ValemTutorials
      @ValemTutorials  2 роки тому +3

      Did you made sure to set your hands to non kinematic ? Also if the hands are bellow the ground and there is a collider on the ground they will collide with it and will not be able to reach the position of your controller.

    • @ValemTutorials
      @ValemTutorials  2 роки тому

      @@istandcat5882 I've responded to Xyndra with what I believe is the solution, can you reach back if this fix your issue ? :)

    • @XyndraNerd
      @XyndraNerd 2 роки тому

      @@ValemTutorials Ah thanks that was it

    • @XyndraNerd
      @XyndraNerd 2 роки тому +1

      Btw If anyone has problems with ground collision use layers like with the hand collision

  • @dimitrishow_D
    @dimitrishow_D 2 роки тому

    do you have a video about how big i can make my game in vr...what i mean is i created a scene in unity lowpoly ..a city ..then when i try to play it on my quest it hardly works..
    what are the limits of the system?

    • @ValemTutorials
      @ValemTutorials  2 роки тому +2

      Do you mean about optimisation in VR ? I'm planning to make a video about it, otherwise there is an excellent video made by VR with Andrew on that subject you can search for it here on youtube :)

    • @dimitrishow_D
      @dimitrishow_D 2 роки тому

      @@ValemTutorials well im not that great at the tech side of this stuff so my description might be weird lol..
      simply put how many objects can i put in my scene before it starts lagging? how big can i make a scene?

    • @r1pfake521
      @r1pfake521 2 роки тому +1

      @@dimitrishow_D There is no specific number limit on how many objects you can put in the scene, it highly depends on which objects, materials, scripts, project settings etc. Good optimization for a mobile device is one of the hardest topics. The "simple" fix would be to remove objects until it runs with good performance, the proper solution is to playtest and use the profiler tools and adjust based on the profiler results. There are some general hints/tips that can be followed (like the Andrew video mentioned above) but in the end every project is different, so everyone has to find their on bottlenecks and the profiler can help.

    • @dimitrishow_D
      @dimitrishow_D 2 роки тому

      @@r1pfake521 ok thnx for great reply ..and yeah that was gonna be my solution ..take away bits of the city untill it runs smooth and then create different scenes for all those areas.
      thnx !

  • @katebiel
    @katebiel 2 роки тому

    Hm but when you walk they are moving weirdly. lagging...

  • @jimmychen0123
    @jimmychen0123 2 роки тому

    Hello, does this behaviour happen to anyone: the physics hands were stuck/blocked by objects like walls when teleporting to a different location?

    • @ValemTutorials
      @ValemTutorials  2 роки тому

      Yes as the movement or the hand are continuous when following this can happen if there is a wall between you and where you teleport. Best thing is to teleport the hand aswell to the destination

    • @jimmychen0123
      @jimmychen0123 2 роки тому

      @@ValemTutorials Thanks for the reply and making such great content, my workaround is: not having non-physical hands but placing the physics hand model back to the parent XR controller!

  • @thewalfordbros1210
    @thewalfordbros1210 2 роки тому

    When i test out the game at the end my hands are still rotating? what do i do?

    • @MaxDolotboy
      @MaxDolotboy 2 роки тому

      Did you find an answer ? Mine keep rotating and not following my controllers position

  • @IDontEvenKnow32
    @IDontEvenKnow32 2 роки тому

    im having a problem where the vr hands are spinning the wrong way to get to the original position

    • @-cursed-
      @-cursed- Рік тому

      you wanna switch:
      rb.angularVelocity = rotationDifferenceInDegrees * Mathf.Deg2Rad / Time.fixedDeltaTime;
      With
      if (angleInDegree > 180)
      {
      rb.angularVelocity = -rotationDifferenceInDegree * Mathf.Deg2Rad / Time.fixedDeltaTime;
      }
      else
      {
      rb.angularVelocity = rotationDifferenceInDegree * Mathf.Deg2Rad / Time.fixedDeltaTime;
      }
      hope this helps

    • @3d-action
      @3d-action Рік тому

      @@-cursed- Bro I kiss your eyes

  • @bertrandr.6183
    @bertrandr.6183 2 роки тому +1

    anyone else's hands stop animating after finishing?

  • @jacksonjonjr
    @jacksonjonjr 2 роки тому +2

    is it just me or does the hand rotate very slow

    • @cedricknapp2889
      @cedricknapp2889 2 роки тому +3

      The angular velocity of the rigid-bodies on the hands is being clamped, resulting in a slower turn speed than what is calculated. This is very apparent with fast hand movement/rotations.
      To fix this issue, in the Start() method after the line:
      rb = GetComponent();
      add the following line:
      rb.maxAngularVelocity = 20;
      This overrides the default maxAugularVelocity of 7 which is not sufficient here, hence the issue that is being observed.

    • @ethanjamesbarron
      @ethanjamesbarron 2 роки тому

      @@cedricknapp2889 Thank you so much! I never knew that was a thing! You just saved me a crap ton of maths!
      Edit: Nevermind still an issue :/
      Basically if I just rotate my wrist in general and not just wave my hand while rotating it, it linearly moves to the right rotation and it's so annoying

    • @cedricknapp2889
      @cedricknapp2889 2 роки тому

      @@ethanjamesbarron hmmm sorry I didn't see this issue occuring for me as far as I could tell. I'm not sure exactly what would help here unfortunately

    • @ethanjamesbarron
      @ethanjamesbarron 2 роки тому

      @@cedricknapp2889 It’s alright. I guess I’ll have to try another way. Thanks though!

    • @vigge8806
      @vigge8806 2 роки тому

      @@ethanjamesbarron I know I'm late but did you figure it out?

  • @KommissarKong
    @KommissarKong 11 місяців тому

    The Download Link is filled with empty folders so RIP

  • @nocoreal
    @nocoreal 2 роки тому

    my hands are lagging behind

  • @iambored9888
    @iambored9888 2 роки тому

    Bomboclat

  • @mrbotytgaming
    @mrbotytgaming 2 роки тому

    I literally missed typing a ( and felt really stupid after a finnally figured it out

  • @greasygrape6270
    @greasygrape6270 Рік тому

    hey

  • @hmpbs6679
    @hmpbs6679 2 роки тому

    my hands don't animate

  • @agentallegator
    @agentallegator Рік тому

    my brain is rock idiot this is the first game I ever made it looks shit but it is going to work

  • @iambored9888
    @iambored9888 2 роки тому

    Valem, this needs to stop. I just found out you now have a fourth series on this topic.
    Which one do I follow? Which one is correct? Why do they reference eachother? Why!???!? I just want to make epic hentai VR game.

  • @westbjumpin4859
    @westbjumpin4859 2 роки тому +1

    :D

  • @kuiibiethekweeble2143
    @kuiibiethekweeble2143 2 роки тому

    Qui?
    Mmmm chocolate

  • @olivername
    @olivername Рік тому

    adding the hands in but they pink

  • @Arre_vr1
    @Arre_vr1 8 місяців тому

    I kinda bad tutorial not a super bad one but a little bit he just show what he have done