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

This script will adjust the player's virtual height to match the 'DesiredPlayerHeight' property. For example, if the player's height is 1.5 meters tall, but the DesiredPlayerHeight = 1.6, then the player's virtual height will be increased by 0.1. More...

Inheritance diagram for BNG.CalibratePlayerHeight:

Public Member Functions

void CalibrateHeight ()
 
void CalibrateHeight (float calibrateHeight)
 
void ResetPlayerHeight ()
 
float GetCurrentPlayerHeight ()
 
virtual void SetInitialOffset ()
 

Public Attributes

float DesiredPlayerHeight = 1.65f
 
BNGPlayerController PlayerController
 
bool CalibrateOnStart = true
 
InputAction CalibrateHeightAction
 

Detailed Description

This script will adjust the player's virtual height to match the 'DesiredPlayerHeight' property. For example, if the player's height is 1.5 meters tall, but the DesiredPlayerHeight = 1.6, then the player's virtual height will be increased by 0.1.

Member Function Documentation

◆ CalibrateHeight() [1/2]

void BNG.CalibratePlayerHeight.CalibrateHeight ( )

◆ CalibrateHeight() [2/2]

void BNG.CalibratePlayerHeight.CalibrateHeight ( float  calibrateHeight)

◆ GetCurrentPlayerHeight()

float BNG.CalibratePlayerHeight.GetCurrentPlayerHeight ( )

◆ ResetPlayerHeight()

void BNG.CalibratePlayerHeight.ResetPlayerHeight ( )

◆ SetInitialOffset()

virtual void BNG.CalibratePlayerHeight.SetInitialOffset ( )
virtual

Member Data Documentation

◆ CalibrateHeightAction

InputAction BNG.CalibratePlayerHeight.CalibrateHeightAction

◆ CalibrateOnStart

bool BNG.CalibratePlayerHeight.CalibrateOnStart = true

◆ DesiredPlayerHeight

float BNG.CalibratePlayerHeight.DesiredPlayerHeight = 1.65f

◆ PlayerController

BNGPlayerController BNG.CalibratePlayerHeight.PlayerController

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