InstantVR

InstantVR

version 3.1

The main function which configures the avatar. This script will add the Body Movements script and a Rigidbody to the avatar. It will also add the VR Hand script and a Rigidbody to the hands of the avatar.

This function also replaces the former ‘Input Controller’ and ‘Walking’ functions.

Inspector Properties

Head TargetTransform representing the neck position and rotation
Left Hand TargetTransform representing the left hand position and rotation
Right Hand TargetTransform representing the right hand position and rotation
Hip TargetTransform representing the hip position and rotatation (rotation is not used at the moment)
Left Foot TargetTransform representing the left foot position and rotation
Right Foot TargetTransform representing the right foot position and rotation
Playgroundversion 3.1 and up
material used to show the physical place and orientation to the player.
Debug Mode
Base PositionThe position of the avatar in world space during game play
Base RotationThe orientation of the avatar in world space during game play
Head ControllerThe selected head controller during game play
Left Hand ControllerThe selected left hand controller during game play
Right Hand ControllerThe selected right hand controller during game play
Hip ControllerThe selected hip controller during game play
Left Foot ControllerThe selected left foot controller during game play
Right Foot ControllerThe selected right foot controller during game play

Additional Script Variables

leftMovementsthe left hand Movements script (Read Only)
rightMovementsthe right hand Movements script (Read Only)
characterTransformthe transform of the avatar (Read Only)
hithas the body of the avatar collided with a collider? (Read Only)
hitNormalthe normal of the surface which has hit by the body (Read Only)
inputDirectionrequested direction of walking (Read Only)