|
@@ -21,18 +21,18 @@ module BABYLON {
|
|
|
|
|
|
// Build mesh on root node
|
|
|
var arrowMesh = BABYLON.MeshBuilder.CreateCylinder("yPosMesh", {diameterTop:0, height: 2, tessellation: 96}, gizmoLayer.utilityLayerScene);
|
|
|
- var arrowTail = BABYLON.MeshBuilder.CreateCylinder("yPosMesh", {diameter:0.03, height: 0.2, tessellation: 96}, gizmoLayer.utilityLayerScene);
|
|
|
+ var arrowTail = BABYLON.MeshBuilder.CreateCylinder("yPosMesh", {diameter:0.015, height: 0.3, tessellation: 96}, gizmoLayer.utilityLayerScene);
|
|
|
this._rootMesh.addChild(arrowMesh);
|
|
|
this._rootMesh.addChild(arrowTail);
|
|
|
|
|
|
// Position arrow pointing in its drag axis
|
|
|
- arrowMesh.scaling.scaleInPlace(0.1);
|
|
|
+ arrowMesh.scaling.scaleInPlace(0.05);
|
|
|
arrowMesh.material = coloredMaterial;
|
|
|
arrowMesh.rotation.x = Math.PI/2;
|
|
|
arrowMesh.position.z+=0.3;
|
|
|
arrowTail.rotation.x = Math.PI/2;
|
|
|
arrowTail.material = coloredMaterial;
|
|
|
- arrowTail.position.z+=0.2;
|
|
|
+ arrowTail.position.z+=0.15;
|
|
|
this._rootMesh.lookAt(this._rootMesh.position.subtract(dragAxis));
|
|
|
|
|
|
// Add drag behavior to handle events when the gizmo is dragged
|