private static void UpdatePoses()
 {
     if (_compositor == null)
     {
         return;
     }
     _compositor.GetLastPoses(_poses, _gamePoses);
     SteamVR_Event.Send("new_poses", _poses);
     SteamVR_Event.Send("new_poses_applied");
 }
Ejemplo n.º 2
0
    // Token: 0x06005F63 RID: 24419 RVA: 0x002180DC File Offset: 0x002164DC
    public void UpdatePoses()
    {
        CVRCompositor compositor = OpenVR.Compositor;

        if (compositor != null)
        {
            compositor.GetLastPoses(this.poses, this.gamePoses);
            SteamVR_Events.NewPoses.Send(this.poses);
            SteamVR_Events.NewPosesApplied.Send();
        }
    }
Ejemplo n.º 3
0
    private void OnPreCull()
    {
        CVRCompositor compositor = OpenVR.Compositor;

        if (compositor != null)
        {
            SteamVR_Render instance = SteamVR_Render.instance;
            compositor.GetLastPoses(instance.poses, instance.gamePoses);
            SteamVR_Utils.Event.Send("new_poses", new object[]
            {
                instance.poses
            });
            SteamVR_Utils.Event.Send("new_poses_applied", new object[0]);
        }
    }