public void setPickable(boolean pickable) { this.pickable = pickable; // schedule a task to update the pick geometry SceneWorker.addWorker( new WorkCommit() { public void commit() { updatePickGeometry(); } }); }
public void triggerGoto(final Vector3f position, final Quaternion look) { if (avatarCharacter != null) { SceneWorker.addWorker( new WorkCommit() { public void commit() { PTransform xform = new PTransform(look, position, new Vector3f(1, 1, 1)); avatarCharacter.getModelInst().setTransform(xform); } }); } else { CellTransform transform = new CellTransform(); transform.setRotation(look); transform.setTranslation(position); cell.getComponent(MovableComponent.class).localMoveRequest(transform); } }