Roll the turtle around its local X axis. Just a roll is enough to affect direction, since it's a rotation around the longitudinal axis. That is, a rotation around the axis you're facing.
(self, angle)
| 58 | logger.debug(f"pitch {angle}deg") |
| 59 | |
| 60 | def roll(self, angle): |
| 61 | """Roll the turtle around its local X axis. |
| 62 | |
| 63 | Just a roll is enough to affect direction, since it's a rotation around the longitudinal |
| 64 | axis. That is, a rotation around the axis you're facing. |
| 65 | """ |
| 66 | self.rotation = self.rotation * Rotation.from_euler("Z", [angle], degrees=True) |
| 67 | logger.debug(f"roll {angle}deg") |
no outgoing calls