# VR Hand Physics, but it's a Seated VR Experience! (Fg7fPRWe8Bw, 534s) [Music] it's me n Sony welcome back to another VR video today we are back in uh well we're in a different project unusual project today um I'm looking at something that I've been working on which I mentioned I am working on a um seated experience so this is actually the one that we're talking about here and uh it's actually physics based um sort of character movement again uh so it's a little bit of an unusual one it's a vehicle project obviously uh but it's going to be a bit of one one of those sort of tricky type of games where it takes a little bit of tediousness and a bit of skill to sort of play a little bit uh one of those sort of Rage games uh anyways so the way I'm controlling everything obviously they are physics based objects so you can see here I can just push the steering wheel with my fingers and these are actually physical fingers so you can see how they get pushed about and stuff like that so I can actually sort of clamp onto the actual steering wheel and hold it tight like that the same thing applies to the mirror here which is a little bit too loose and will sort of drift as you drive around and you can see in fact it's already doing that as I turn uh you also have the gear stick which is simply two gears it's drive and it's um reversed so that's about all it is right now there is going to be more uh complex it to the game but for now this is what it is so let's just have a look at the sort of game play of it and how it all works out like I say these are pure physics hands as well as per usual and you can see here there's a there's a window here that I crash into when I move my uh hand there I can however lean my head through the window and that's something that I'll be working on as well uh but for now this is what it is now the other thing I should mention is the way that I'm handling the wheel physics in this uh video video in this game and oh my God there's a knocking sound I don't know whether you can hear that but it is what it is anyways so the way I'm handling Wheels here obviously you can see how they turn when I turn the wheel here you can see the wheels turn those wheels are not actually uh real Rolling Wheels so uh normally with unity the way you handle Wheels is you use the uh wheel collider that thing is pretty terrible uh for anything that isn't sort of a a sports car it works great for a sports car where you've got very little suspension anything with a lot of suspension when you drive over an edge that uh let me just not turn it so much when you drive over an edge that uh is sort of quite a quick change in altitude the wheel colliders are pretty horrible in terms of the way they handle suspension and that's because they're not even wheel shaped they're literally just a rare cast downwards with a lot of uh physics logic now unfortunately have having very quick rolling objects is also pretty bad in this in this physics engine so the way I'm handling it you can actually probably see that is when I actually drive you can't you can see that they're not actually rolling at all so that's because they're pure smooth uh physics objects that are on a spring joint which obviously connects to the vehicle however the difference is um instead of actually rolling I'm uh sort of I have internal variables that make it act like it's rolling um so it physically works as if it's rolling so I've got sort of internal variables like uh uh revolutions per minute and stuff like that or it's actually in per second and uh I sort of work from there and I have friction based on how fast the wheel is you know calculativeness it's not actually that easy it should be very easy and they give you a wheel collider to do that it's terrible I absolutely hate the wheel collider as with most Unity physics components anything that Unity tries to do in its own sort of version of physics that isn't based on nvidia's physics engine and I think the wheel collider is based on their own uh nvidia's physics wheel collider but it's not the same obviously because this one's made by un but what whatever it is it's uh it it it doesn't work the way you sort of always want it to and it's really pretty bad for a modern modern day game anyway uh so that's that um a great uh great start there I ended up landing on the side let me just uh restart the game there and I'm back and of course let me just reset my mirror you can see that the mirror is always sort of drifting and you can see my brake brakes are quite powerful as well a it's a bit of one of those games but you can see it's it's quite easy to actually handle everything it really does work properly you can see I can just sort of switch to reverse and sort of reverse suddenly and switch back to drive I don't know whether you're seeing that on screen I have got a sort of different field of view on screen than usual um that's uh only when it's a simple project I can have a sort of secondary camera for the recording uh but anyways that's all this is just a sort of test area that I built to actually test the physics on the wheels it's cuz that's like the main thing right now it's a real problem with unity uh where I just saw wanted to get some working wheel physics um you can see here it works quite well with moving objects it actually does move with the objects correctly and you can see I'm holding the brakes now the way I'm actually controlling acceleration and whatnot um is a little bit unusual I'm actually using the analog sticks where the oh there we go and you can see the hands are still very bouncy they're not fully set up to connect to the vehicle yet so when you crash you can see them fly forward and they sort of crash into the wind screen in front of us um but yeah so regarding uh what was that I was talking about the actual sort of ground movement um the wheels do consider ground speed but what they don't do is have an effect on the ground speed so oh yeah of course I'm uh I'm in a vehicle forgot that I was in a vehicle there and you can see my mirror just sort of gone out of place and and all of that rubbish um yeah so anyways yeah they they don't sort of affect ground movement so if I was driving on top of uh a sort of rolling rolling thing uh and I draw forward I would move forward but the the roller wouldn't actually accelerate backwards so yeah the wheels do need a little bit of work but uh yeah a lot of breaking power there uh but they they sort of work clearly they work quite well anyway so that's that's what I've been working on this is the uh sort of seated experience that I'm working on let's just jump off boom a lot of jumping um going around with the physics there but you can see it's quite fun to sort of have those proper relaxed hands on the wheel and you can see they actually work quite well I really like this so you can obviously just sort of handle the wheel like this as well but uh yeah I'm going to have sort of arm joints as well just to make sure it doesn't sort of have this problem where you you're getting stuck and it goes behind and all of that rubbish uh but yeah that's that's pretty much this whole video I've got a little bit more to come of course on especially on this project the reason being it's nice and easy to sort of work with and and you can see I've got all the basic game mechanics going already now I just have to sort of make some uh tricky tricky levels and uh there is going to be a little bit more to it than just this it's not just a vehicle but uh yeah this is what I'm showing anyway so far you'll have noticed that my controllers are transparent and completely invisible right now um I just left the sort of buttons and stuff just to just for the sake of visibility um but yeah so I'm I'm using the right analog stick to actually handle the brakes and the left analog stick to accelerate and of course when you put it in when you put it in reverse that controls the reverse instead so you don't have that sort of game level control where you're just pressing up and down to drive um in forward or reverse you actually have to use the gear stick and I might actually add some proper gears to it as well I don't know about that maybe maybe not but for now that's the end of this video thanks for watching and uh perfect timing for everything to go all roughly thanks for watching goodbye [Music]