Neuro-VISOR  0.2.0
Visualize and interact with computational simulations using a virtual reality interface
C2M2.Interaction.GrabRescaler Class Reference

Controls the scaling of a transform More...

Inherits MonoBehaviour.

Public Member Functions

void Rescale ()
 

Public Attributes

float scaler = 0.2f
 
float minPercentage = 0.5f
 
float maxPercentage = 3f
 
bool xScale = true
 
bool yScale = true
 
bool zScale = true
 
OVRInput.Button vrThumbstick = OVRInput.Button.PrimaryThumbstick
 
OVRInput.Button vrThumbstickS = OVRInput.Button.SecondaryThumbstick
 
KeyCode incKey = KeyCode.UpArrow
 
KeyCode decKey = KeyCode.DownArrow
 
KeyCode resetKey = KeyCode.R
 

Properties

float ThumbstickScaler [get]
 returns>A boolean of whether the joystick is pressed More...
 
bool ThumbstickPressed [get]
 

Private Member Functions

void Start ()
 
void Update ()
 

Private Attributes

OVRGrabbable grabbable = null
 
Vector3 origScale
 
Vector3 minScale
 
Vector3 maxScale
 
PublicOVRGrabber grabber
 returns>A float between -1 and 1, where -1 means the thumbstick y axis is completely down and 1 implies it is all the way up More...
 

Detailed Description

Controls the scaling of a transform

Member Function Documentation

◆ Rescale()

void C2M2.Interaction.GrabRescaler.Rescale ( )

◆ Start()

void C2M2.Interaction.GrabRescaler.Start ( )
private

◆ Update()

void C2M2.Interaction.GrabRescaler.Update ( )
private

Member Data Documentation

◆ decKey

KeyCode C2M2.Interaction.GrabRescaler.decKey = KeyCode.DownArrow

◆ grabbable

OVRGrabbable C2M2.Interaction.GrabRescaler.grabbable = null
private

◆ grabber

PublicOVRGrabber C2M2.Interaction.GrabRescaler.grabber
private

returns>A float between -1 and 1, where -1 means the thumbstick y axis is completely down and 1 implies it is all the way up

◆ incKey

KeyCode C2M2.Interaction.GrabRescaler.incKey = KeyCode.UpArrow

◆ maxPercentage

float C2M2.Interaction.GrabRescaler.maxPercentage = 3f

◆ maxScale

Vector3 C2M2.Interaction.GrabRescaler.maxScale
private

◆ minPercentage

float C2M2.Interaction.GrabRescaler.minPercentage = 0.5f

◆ minScale

Vector3 C2M2.Interaction.GrabRescaler.minScale
private

◆ origScale

Vector3 C2M2.Interaction.GrabRescaler.origScale
private

◆ resetKey

KeyCode C2M2.Interaction.GrabRescaler.resetKey = KeyCode.R

◆ scaler

float C2M2.Interaction.GrabRescaler.scaler = 0.2f

◆ vrThumbstick

OVRInput.Button C2M2.Interaction.GrabRescaler.vrThumbstick = OVRInput.Button.PrimaryThumbstick

◆ vrThumbstickS

OVRInput.Button C2M2.Interaction.GrabRescaler.vrThumbstickS = OVRInput.Button.SecondaryThumbstick

◆ xScale

bool C2M2.Interaction.GrabRescaler.xScale = true

◆ yScale

bool C2M2.Interaction.GrabRescaler.yScale = true

◆ zScale

bool C2M2.Interaction.GrabRescaler.zScale = true

Property Documentation

◆ ThumbstickPressed

bool C2M2.Interaction.GrabRescaler.ThumbstickPressed
getprivate

◆ ThumbstickScaler

float C2M2.Interaction.GrabRescaler.ThumbstickScaler
getprivate

returns>A boolean of whether the joystick is pressed


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