###New Version with GUI support can be viewed here Link here: https://github.com/ishan28mkip/turtleBlocks3D
Preview here: http://ishan28mkip.github.io/turtleBlocks3D
A 3D, javascript/WebGL based implementation of the turtle Blocks Activity. Link to the Preview : http://ishan28mkip.github.io/turtle3DOld
On running the prototype there is a prompt for the mode of execution. 0 : CUI mode, 1 : Manual Mode. In the CUI mode the code can be written text area which will be excuted. While in the Manual mode keys control the cursor, its rotation and block placement.
Chose 0 in the initial prompt.
positionStepX: Changes the step value for the cursor movement along X axis(Pixels).positionStepY: Changes the step value for the cursor movement along Y axis(Pixels).positionStepZ: Changes the step value for the cursor movement along Z axis(Pixels).rotationStepRoll: Changes the step rotation value of the roll.(Degrees)rotationStepPitch: Changes the step rotation value of the pitch.(Degrees)rotationStepYaw: Changes the step rotation value of the yaw.(Degrees)
shiftCursorPositionX(direction); MovepositionStepXdistance about its x axis direction. direction1would be positive x axis,-1would be negative x axis. Similar commands exist for Y & Z axis.setRoll(degree); Specify the value of roll indegrees. Similar commands exist for setting Pitch, Yaw.rotateRoll(degree); Roll the cursor/objectrotationStepRolldegree. Similar commands exist for incrementing or decrementing the Pitch and Yaw.CreateCurrentObjectAtCursor; inserts the current block (material & geometry) selected at the centre and in the orientation of the cursor.
An example is already present in the text area when the website loads.
Sample Screenshots
- The script text area is given eval access. This leads to big security concerns. Next iteration would lead to a better implementation without eval.
- Graphical Scripting is not yet implemented.
Chose 1 in the initial prompt.
Arrow keysto move in the X-Y plane.]key to move in the positive z direction &[to move in the negative z direction.rto set the roll.pto set the pitch.yto set the yaw.ito insert block at the current position.

