VR Interaction Framework v2.0
Loading...
Searching...
No Matches
BNG.DemoScript Class Reference

Contains various functionality used in the Demo Scene such as Switching Hands and Locomotion. More...

Inheritance diagram for BNG.DemoScript:

Public Member Functions

void UpdateSliderText (float sliderValue)
 
void UpdateJoystickText (float leverX, float leverY)
 
void ResetGrabbables ()
 
void GrabAmmo (Grabber grabber)
 
void ShootLauncher ()
 

Public Attributes

TMPro.TMP_Text LabelToUpdate
 
ProjectileLauncher DemoLauncher
 Used in the demo scene to shoot various objects.
 
int MaxLaunchedObjects = 5
 Max number of objects to launch from DemoLauncher. Old objects will be destroyed to make room for new.
 
Text JoystickText
 Used in demo scene.
 
GameObject AmmoObject
 Used in demo scene to spawn ammo clips.
 
Transform ItemsHolder
 Holds all of the grabbable objects in the scene.
 

Detailed Description

Contains various functionality used in the Demo Scene such as Switching Hands and Locomotion.

Member Function Documentation

◆ GrabAmmo()

void BNG.DemoScript.GrabAmmo ( Grabber  grabber)

◆ ResetGrabbables()

void BNG.DemoScript.ResetGrabbables ( )

◆ ShootLauncher()

void BNG.DemoScript.ShootLauncher ( )

◆ UpdateJoystickText()

void BNG.DemoScript.UpdateJoystickText ( float  leverX,
float  leverY 
)

◆ UpdateSliderText()

void BNG.DemoScript.UpdateSliderText ( float  sliderValue)

Member Data Documentation

◆ AmmoObject

GameObject BNG.DemoScript.AmmoObject

Used in demo scene to spawn ammo clips.

◆ DemoLauncher

ProjectileLauncher BNG.DemoScript.DemoLauncher

Used in the demo scene to shoot various objects.

◆ ItemsHolder

Transform BNG.DemoScript.ItemsHolder

Holds all of the grabbable objects in the scene.

◆ JoystickText

Text BNG.DemoScript.JoystickText

Used in demo scene.

◆ LabelToUpdate

TMPro.TMP_Text BNG.DemoScript.LabelToUpdate

◆ MaxLaunchedObjects

int BNG.DemoScript.MaxLaunchedObjects = 5

Max number of objects to launch from DemoLauncher. Old objects will be destroyed to make room for new.


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