Constructor
new Editor(frame3D, assetManager, options)
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
frame3D | module:@ud-viz/frame3d~Planar | | frame 3d | ||||||||||||||||||||||||
assetManager | AssetManager | asset manager | ||||||||||||||||||||||||
options | object | options Properties
|
Classes
Members
assetManager :AssetManager
- AssetManager
buttonTargetGameObject3D :HTMLElement
- HTMLElement
colliderParent :Object3D
- Object3D
currentGODomelement :HTMLElement
- HTMLElement
currentGameObject3D :GameObject3D|null
- GameObject3D |
null
currentGameObjectMeshBox3 :Box3
- Box3
currentObjectInput :undefined|null
- undefined |
null
frame3D :module:@ud-viz/frame3d~Planar|module:@ud-viz/frame3d~Base
- module:@ud-viz/frame3d~Planar |
module:@ud-viz/frame3d~Base
gameObjectInput :GameObject3DInput
leftPan :HTMLElement
- HTMLElement
orbitControls :OrbitControls
- OrbitControls
process :RequestAnimationFrameProcess
- RequestAnimationFrameProcess
shapeContext :object
- object
toolsDomElement :HTMLElement
- HTMLElement
transformControls :TransformControls
- TransformControls
userData :object
- object
Methods
focusCurrentGameObject3D()
Move camera to focus current game object 3d
selectGameObject3D(go, force)
Name | Type | Default | Description |
---|---|---|---|
go | GameObject3D | game object 3d to select for edition | |
force | boolean | false | force even if the selected gameobject3d is the same |
selectPointMesh(mesh)
Name | Type | Description |
---|---|---|
mesh | Mesh | point mesh to select with transform controls |
selectShape(shapeIndex)
Name | Type | Description |
---|---|---|
shapeIndex | number | index of the shape to select |
setCurrentGameObject3DJSON(gameObject3DJSON)
Name | Type | Description |
---|---|---|
gameObject3DJSON | object | json of the gameobject to set |
setOrbitControlsTargetTo(obj)
Name | Type | Description |
---|---|---|
obj | Object3D | object 3d to target |
updateBox3()
Update box3 wrapping selected game object 3d
updateCollider()
Update collider shapes in the 3D scene
updateShapeSelected(rebuildShapeGeometry)
Update shape selected (when a property of the shape has changed)
Name | Type | Default | Description |
---|---|---|---|
rebuildShapeGeometry | boolean | true | shape selected needs to rebuild its geometry |
(static) computeBox3GameObject3D(obj) → {Box3}
Name | Type | Description |
---|---|---|
obj | Object3D | object 3d to compute box3 |
- box 3 of the object 3d
- Type:
- Box3