TranslationGizmo

TranslationGizmo

Update local translation of target entity

Constructor

new TranslationGizmo()

Methods

activate(props)

Calculate the plane and line for translation, and attach selections as children of gizmo anchor.

Parameters:
Name Type Description
props Object

compileRenderables() → {Array.<Object>}

Build out the gizmo renderable meshes

deactivate()

Deactivate the gizmo

process(mouseState, oldMouseState)

transform update in each frame when translation gizmo is active.

Parameters:
Name Type Description
mouseState Vector2

x,y coord of mouse

oldMouseState Vector2

old x,y coord of mouse