|
@@ -229,7 +229,7 @@ function SetPathPoint()
|
|
|
if input:GetQualifierDown(QUAL_SHIFT) then
|
|
if input:GetQualifierDown(QUAL_SHIFT) then
|
|
|
-- Teleport
|
|
-- Teleport
|
|
|
currentPath = {}
|
|
currentPath = {}
|
|
|
- jackNode:LookAt(pathPos, Vector3(0.0, 1.0, 0.0))
|
|
|
|
|
|
|
+ jackNode:LookAt(Vector3(pathPos.x, jackNode.position.y, pathPos.z), Vector3(0.0, 1.0, 0.0))
|
|
|
jackNode.position = pathPos;
|
|
jackNode.position = pathPos;
|
|
|
else
|
|
else
|
|
|
-- Calculate path from Jack's current position to the end point
|
|
-- Calculate path from Jack's current position to the end point
|