|
|
|
@ -336,7 +336,7 @@ public abstract class SceneEditTool { |
|
|
|
|
CollisionResults results = new CollisionResults(); |
|
|
|
|
Ray ray = new Ray(); |
|
|
|
|
Vector3f pos = cam.getWorldCoordinates(mouseLoc, 0).clone(); |
|
|
|
|
Vector3f dir = cam.getWorldCoordinates(mouseLoc, 0.1f).clone(); |
|
|
|
|
Vector3f dir = cam.getWorldCoordinates(mouseLoc, 0.125f).clone(); |
|
|
|
|
dir.subtractLocal(pos).normalizeLocal(); |
|
|
|
|
ray.setOrigin(pos); |
|
|
|
|
ray.setDirection(dir); |
|
|
|
@ -360,7 +360,7 @@ public abstract class SceneEditTool { |
|
|
|
|
*/ |
|
|
|
|
protected void highlightAxisMarker(Camera camera, Vector2f screenCoord, AxisMarkerPickType axisMarkerPickType, boolean colorAll) { |
|
|
|
|
setDefaultAxisMarkerColors(); |
|
|
|
|
Vector3f picked = pickAxisMarker(camera, screenCoord, axisPickType); |
|
|
|
|
Vector3f picked = pickAxisMarker(camera, screenCoord, axisMarkerPickType); |
|
|
|
|
if (picked == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -453,6 +453,7 @@ public abstract class SceneEditTool { |
|
|
|
|
// axis.attachChild(quadYZ);
|
|
|
|
|
|
|
|
|
|
axis.setModelBound(new BoundingBox()); |
|
|
|
|
axis.updateModelBound(); |
|
|
|
|
return axis; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|