VRControllerComponent

VRControllerComponent

Holds VR Controller

Constructor

new VRControllerComponent()

Members

hand

get the hand property of this controller component

id

get id bind to this controller component

Methods

update(gamepads, cameraRig)

Update Controller bind to this entity

Parameters:
Name Type Description
gamepads Gamepad
cameraRig Entity

updatePose()

update position of this entity based on controller's data