Members

1

Can move forward and backward and rotateZ left and right

2

Can move forward and backward left and right and rotate with mouse

3

Can move forward, backward, up and down. Can rotateZ left and right

Methods

computeRelativeElevationFromGround(object3D, tileLayer, crsopt) → {number}

Compute relative elevation from ground of a Object3D

Parameters:
NameTypeAttributesDefaultDescription
object3DTHREE.Object3D

object3D

tileLayeritowns.TiledGeometryLayer

tile layer used to compute elevation

crsstring<optional>
EPSG:3946

coordinates referential system

Returns:
  • relative elevation
Type: 
number

moveHtmlToWorldPosition(htmlToMove, worldPos, camera)

Modify left and top css attributes of your html element to place in scene3D

Parameters:
NameTypeDescription
htmlToMoveHTMLElement

html element to modify left and top attributes

worldPosTHREE.Vector3

world position where to move your html

cameraTHREE.PerspectiveCamera

camera of the scene3D

Type Definitions

DragAndDropAvatarVariables

Properties
NameTypeDescription
camera_durationnumber

time for camera movement in ms

camera_offsetObject

offset to positioned camera behind object3D

camera_anglenumber

angle on x to positioned camera behind object3D

camera_distancenumber

distance to positioned camera behind object3D

update_z_crsstring

projection used to update z elevation of avatar

Movement(dt)

Parameters:
NameTypeDescription
dtnumber

delta time movement

addButtonNoteCallback(textAreaValue)

Parameters:
NameTypeDescription
textAreaValuestring

current value of the textarea