Jump to content

Problem getting the Y axis value of my player when spawning on the network


Recommended Posts

Actually, I do have to do this in the update method 

    private void Update()
        if (!IsOwner) return;

        var hmdPose = VRModule.GetCurrentDeviceState(0);
        if (!hmdPose.isPoseValid) return;

If not, I spawn at Y = 0 and stay there. 

Is that a bug of some kind ? 


Anyway, it's working now, thanks !


Link to comment
Share on other sites

Hi @JulienActiveMe,

I don't think there is bug, it is just how it should work for NetCode.

I reference to some samples online and came up with my own solution.



By the way, if there is bug, this should be NetCode related bug, you should ask Unity instead. 🙂

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...