Move the turtle forward by the given stepsize.
(self, stepsize=1)
| 38 | self._position = np.array(value) |
| 39 | |
| 40 | def forward(self, stepsize=1): |
| 41 | """Move the turtle forward by the given stepsize.""" |
| 42 | orientation = (0, 0, 1) |
| 43 | orientation = self.rotation.apply(orientation) |
| 44 | self.position = self.position + stepsize * orientation |
| 45 | logger.debug(f"stepping forward to {self.position}") |
| 46 | |
| 47 | def yaw(self, angle): |
| 48 | """Yaw the turtle around its local Z axis.""" |
no outgoing calls