Vis2_CO2Data
 
Loading...
Searching...
No Matches
GlobeInteraction Class Reference

Handles interactions with the globe in a VR environment. Provides functionality for rotating and resizing the globe. More...

Inherits XRBaseInteractable.

Public Member Functions

void StartResizingAndMoving ()
 Initializes the resizing and moving state for the globe.
 

Public Attributes

float rotationSpeed = 100f
 Speed at which the globe rotates.
 
float resizeSpeed = 0.2f
 Speed at which the globe is resized.
 
float minScale = 0.5f
 Minimum allowed scale for the globe.
 
float maxScale = 2f
 Maximum allowed scale for the globe.
 

Protected Member Functions

override void OnSelectEntered (SelectEnterEventArgs args)
 Handles the event when an interactor starts interacting with the globe.
 
override void OnSelectExited (SelectExitEventArgs args)
 Handles the event when an interactor stops interacting with the globe.
 

Detailed Description

Handles interactions with the globe in a VR environment. Provides functionality for rotating and resizing the globe.

Member Function Documentation

◆ OnSelectEntered()

override void GlobeInteraction.OnSelectEntered ( SelectEnterEventArgs args)
protected

Handles the event when an interactor starts interacting with the globe.

Parameters
argsEvent arguments containing interactor and interactable details.

◆ OnSelectExited()

override void GlobeInteraction.OnSelectExited ( SelectExitEventArgs args)
protected

Handles the event when an interactor stops interacting with the globe.

Parameters
argsEvent arguments containing interactor and interactable details.

◆ StartResizingAndMoving()

void GlobeInteraction.StartResizingAndMoving ( )

Initializes the resizing and moving state for the globe.

Member Data Documentation

◆ maxScale

float GlobeInteraction.maxScale = 2f

Maximum allowed scale for the globe.

◆ minScale

float GlobeInteraction.minScale = 0.5f

Minimum allowed scale for the globe.

◆ resizeSpeed

float GlobeInteraction.resizeSpeed = 0.2f

Speed at which the globe is resized.

◆ rotationSpeed

float GlobeInteraction.rotationSpeed = 100f

Speed at which the globe rotates.


The documentation for this class was generated from the following file: