Euler Angles Visualizer
Run the Euler Angles Visualizer Fullscreen
Edit the Euler Angles Visualizer with the p5.js editor
About This MicroSim
This MicroSim demonstrates how Euler angles work to represent 3D rotations. See how yaw, pitch, and roll combine to orient an object in space, and observe the gimbal lock problem as pitch approaches ±90°.
How to Use
- Adjust Yaw (ψ): Rotate about the Z axis (-180° to 180°)
- Adjust Pitch (θ): Rotate about the Y axis (-90° to 90°)
- Adjust Roll (φ): Rotate about the X axis (-180° to 180°)
- Select Convention: Choose ZYX, XYZ, or ZXZ rotation order
- Animate Sequence: Watch each rotation applied step by step
- Drag to Rotate: Click and drag to change the view angle
Key Concepts
| Euler Angle | Axis | Range | Aviation Term |
|---|---|---|---|
| Yaw (ψ) | Z | -180° to 180° | Heading |
| Pitch (θ) | Y | -90° to 90° | Attitude |
| Roll (φ) | X | -180° to 180° | Bank |
Learning Objectives
Students will be able to: - Understand how three sequential rotations define any 3D orientation - Apply the correct rotation order for different conventions - Recognize the signs of approaching gimbal lock - Compute the rotation matrix from Euler angles
Lesson Plan
Introduction (5 minutes)
Euler angles are intuitive for human understanding but have mathematical limitations. They're widely used in aviation, robotics, and animation.
Exploration (10 minutes)
- Set all angles to zero, then increase yaw - observe rotation about Z
- Add pitch - notice how the rotation axis changes
- Finally add roll - see the complete orientation
- Use "Animate Sequence" to watch rotations applied in order
Gimbal Lock Demonstration (5 minutes)
- Set pitch to 85°
- Notice the warning indicator
- Try adjusting yaw and roll - observe reduced control