TranslationGizmo

TranslationGizmo

Update local translation of target entity

Constructor

new TranslationGizmo()

Methods

activate(props)

When activate the rotation gizmo, calculate the rotation direction based on the mouse move

Parameters:
Name Type Description
props Object

compileRenderables() → {Array.<Object>}

Gizmo renderable mesh

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