Exemplo n.º 1
0
        public void ObjectInteractionUpdate(Component_GameMode.ObjectInteractionContextClass context)
        {
            if (createdViewport != null)
            {
                var cameraSettings = context.Viewport.CameraSettings;
                var ray            = new Ray(cameraSettings.Position, cameraSettings.Rotation.GetForward() * cameraSettings.FarClipDistance);

                //update mouse position
                if (GetScreenPositionByRay(ray, out var screenPosition))
                {
                    createdViewport.UIContainer.PerformMouseMove(screenPosition);
                }
            }
        }
Exemplo n.º 2
0
 public void ObjectInteractionUpdate(Component_GameMode.ObjectInteractionContextClass context)
 {
 }
Exemplo n.º 3
0
 public void ObjectInteractionExit(Component_GameMode.ObjectInteractionContextClass context)
 {
     ChangingEnd();
 }