Esempio 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);
                }
            }
        }
Esempio n. 2
0
 public void ObjectInteractionUpdate(Component_GameMode.ObjectInteractionContextClass context)
 {
 }
Esempio n. 3
0
 public void ObjectInteractionExit(Component_GameMode.ObjectInteractionContextClass context)
 {
     ChangingEnd();
 }