NoobDevTv / TurtlesBrain

This program can be used to control the Turtles and/or Computer from ComputerCraft via http.
MIT License
2 stars 2 forks source link

Added realitve Coordinate X,Y,Z and Direction to TurtleAPI #3

Closed reneci closed 8 years ago

reneci commented 8 years ago

Easy and automatically handle, can be used for pathfinding etc.

// using System.Web.Http using System.Net.Http because Visual Studio can't Find System.Web.Http (Doen't Have any Reference)

susch19 commented 8 years ago

We would have implemented something like that tomorrow in our stream at livecoding.tv/marcus_aurelius and i already did that in lua, but absolute not relative. The problem with your code is, that the turtle doesn't know in which direction it's facing, so north, west, south and east aren't the best names for relative coodinates. If you would use gps (not yet implemented) or pass the position as paramters, you could create an absolute coordinate system and share it between the turtles, so they could learn, how the world looks like.

susch19 commented 8 years ago

Oh and System.Web.Http isn't used in the Program.cs of TurtlesBrain. I will remove all unnecessary usings tomorrow, so that there aren't any problems in the future.