mirror of
				https://github.com/kepler155c/opus
				synced 2025-10-31 07:33:00 +00:00 
			
		
		
		
	turtle not pathing backwards
This commit is contained in:
		| @@ -173,7 +173,8 @@ local function pathTo(dest, options) | |||||||
|  |  | ||||||
| 				-- use single turn method so the turtle doesn't turn around | 				-- use single turn method so the turtle doesn't turn around | ||||||
| 				-- when encountering obstacles | 				-- when encountering obstacles | ||||||
| 				if not turtle.gotoSingleTurn(pt.x, pt.y, pt.z, pt.heading) then | 				-- if not turtle.gotoSingleTurn(pt.x, pt.y, pt.z, pt.heading) then | ||||||
|  | 				if not turtle.goto(pt) then | ||||||
| 					local bpt = Point.nearestTo(turtle.point, pt) | 					local bpt = Point.nearestTo(turtle.point, pt) | ||||||
|  |  | ||||||
| 					table.insert(blocks, bpt) | 					table.insert(blocks, bpt) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 kepler155c@gmail.com
					kepler155c@gmail.com