DragAndDropAvatar

Alows users to drag and drop an avatar in a 3D environment and control its position and camera view.

Constructor

new DragAndDropAvatar()

Members

avatar :Object3D

Type:
  • Object3D

cameraManager :CameraManager

camera manager

controllerNativeCommandManager :ControllerNativeCommandManager

domElement :HTMLElement

Type:
  • HTMLElement

dragAndDropElement :HTMLDivElement

Type:
  • HTMLDivElement

itownsCameraPosition :THREE.Vector3

Type:
  • THREE.Vector3

itownsCameraQuaternion :THREE.Quaternion

record where was camera quaternion

Type:
  • THREE.Quaternion

leaveAvatarModeButton :HTMLDivElement

Type:
  • HTMLDivElement

(static) DEFAULT_VARIABLES

Methods

setAvatar(avatar)

Update state of this based on there is an avatar or not

Parameters:
NameTypeDescription
avatarObject3D

avatar game object3D

tick()

It computes the elevation of the avatar and sends it to the game context