CharacterCameraConstraint Class Reference

This component is responsible for moving the character capsule to match the HMD, fading out the camera or blocking movement when collisions occur, and adjusting the character capsule height to match the HMD's offset from the ground. More...

Inheritance diagram for CharacterCameraConstraint:

Public Attributes

OVRCameraRig CameraRig
 This should be a reference to the OVRCameraRig that is usually a child of the PlayerController. More...
 
LayerMask CollideLayers
 Collision layers to be used for the purposes of fading out the screen when the HMD is inside world geometry and adjusting the capsule height. More...
 
float HeightOffset
 Offset is added to camera's real world height, effectively treating it as though the player was taller/standing higher. More...
 
float MinimumHeight
 Minimum height that the character capsule can shrink to. To disable, set to capsule's height. More...
 
float MaximumHeight
 Maximum height that the character capsule can grow to. To disable, set to capsule's height. More...
 

Detailed Description

This component is responsible for moving the character capsule to match the HMD, fading out the camera or blocking movement when collisions occur, and adjusting the character capsule height to match the HMD's offset from the ground.

Member Data Documentation

◆ CameraRig

OVRCameraRig CharacterCameraConstraint.CameraRig

This should be a reference to the OVRCameraRig that is usually a child of the PlayerController.

◆ CollideLayers

LayerMask CharacterCameraConstraint.CollideLayers

Collision layers to be used for the purposes of fading out the screen when the HMD is inside world geometry and adjusting the capsule height.

◆ HeightOffset

float CharacterCameraConstraint.HeightOffset

Offset is added to camera's real world height, effectively treating it as though the player was taller/standing higher.

◆ MaximumHeight

float CharacterCameraConstraint.MaximumHeight

Maximum height that the character capsule can grow to. To disable, set to capsule's height.

◆ MinimumHeight

float CharacterCameraConstraint.MinimumHeight

Minimum height that the character capsule can shrink to. To disable, set to capsule's height.


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