fchb1239 / PhotonVR

A Unity Package containing all the necessary components to do VR networking with Photon
MIT License
44 stars 17 forks source link

Update PhotonVRPlayerBody.cs #17

Closed MaxNiftyNine closed 1 year ago

MaxNiftyNine commented 1 year ago

PhotonVRPlayerBody had a issue (mostly with gorilla locomotion) where you can turn your head sideways and the body will go through the floor, this should fix that bug.

MaxNiftyNine commented 1 year ago

I also just added GetCosmetic and edited the README to show how to use it

fchb1239 commented 1 year ago

Can you explain the player body.cs a little better Also that cosmetic code is already in the next update

fchb1239 commented 1 year ago

playerbody.cs is flawed, the y axis of the body will only stay on the original y axis

MaxNiftyNine commented 1 year ago

Welp for me (gorilla locomotion) it solved the problem where the player model clips through the floor, it basically uses the same math as gorilla locomotion when finding where the capsule collider be

Whatever it's fine I'll make a new pull request if I want to add anything else