summaryrefslogtreecommitdiff
path: root/demos/3d/navmesh/navmesh.gd
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-12-08 15:47:45 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-12-08 15:47:45 -0300
commit6851f9bfaefdd70eb009efdede444d3238c7277c (patch)
treed7e90b45dcdcc792c57ca1d61adab274d8e30507 /demos/3d/navmesh/navmesh.gd
parent9df8d5f616dbb3f81299ccca4929c0a8f46a6d79 (diff)
Small Fixes
-=-=-=-=-=- -Bug in navmesh demo fixed -Bug in variant -Better Collada Exporter supports proper names of exported shapekeys
Diffstat (limited to 'demos/3d/navmesh/navmesh.gd')
-rw-r--r--demos/3d/navmesh/navmesh.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/3d/navmesh/navmesh.gd b/demos/3d/navmesh/navmesh.gd
index a81a5e90d6..b5dc488ec3 100644
--- a/demos/3d/navmesh/navmesh.gd
+++ b/demos/3d/navmesh/navmesh.gd
@@ -76,7 +76,7 @@ func _input(ev):
if (ev.type==InputEvent.MOUSE_BUTTON and ev.button_index==BUTTON_LEFT and ev.pressed):
- var from = get_node("cambase/Camera").project_position(ev.pos)
+ var from = get_node("cambase/Camera").project_ray_origin(ev.pos)
var to = from+get_node("cambase/Camera").project_ray_normal(ev.pos)*100
var p = get_closest_point_to_segment(from,to)