Turtle3D

Class Turtle3D subclasses Turtles, adding 3D methods using Three.js's Object3D module. See NetLogo who's 3D semantics we follow.

Just as with Turtle, you do not call new Turtle3D(), instead class Turtles creates Turtle3D instances via Model modifying the Turtles/Turtle3D initialization.

Again, class Turtles is a factory for all of it's Turtle3D instances. So don't do this:

Constructor

new Turtle3D()

Methods

reset()

Resets this turtle's position, rotation and heading all to 0's

setxyz(x, y, z)

Set's this turtle's 3D, x y z, position

Parameters:
NameTypeDescription
xnumber

float for x position

ynumber

float for y position

znumber

float for z position