UnityChanControlScriptWithRgidBody.UpdatePosition C# (CSharp) Method

UpdatePosition() public method

public UpdatePosition ( UserState, state ) : void
state UserState,
return void
    public void UpdatePosition(UserState state)
    {
        if (itsMe)
            return;

        last_axis_v = state.a_v;
        last_axis_h = state.a_h;
        last_jump = state.jump;
        last_position = new Vector3(state.p_x, -0.02f, state.p_z);
        last_rotation = new Quaternion(0f, state.r_y, 0f, state.r_w);
    }