Skip to content
Isoline
Topics
Explore
Challenges
Review
Leaderboard
Groups
Assistant
Search topics
Ctrl K
Ask the assistant
Log in
Quests
Topics
Explore
Challenges
Review
Leaderboard
Groups
Assistant
Math for Animation
/
Game Development
How Math for Animation is used in Game Development
Smooth rotation
q
=
(
cos
θ
2
,
sin
θ
2
n
)
,
slerp
(
q
0
,
q
1
;
t
)
=
sin
(
(
1
−
t
)
Ω
)
q
0
+
sin
(
t
Ω
)
q
1
sin
Ω
,
cos
Ω
=
q
0
⋅
q
1
q = \left(\cos\tfrac{\theta}{2},\ \sin\tfrac{\theta}{2}\,\mathbf n\right), \qquad \operatorname{slerp}(q_0, q_1; t) = \frac{\sin\big((1-t)\Omega\big)\,q_0 + \sin(t\Omega)\,q_1}{\sin\Omega}, \qquad \cos\Omega = q_0\cdot q_1
q
=
(
cos
2
θ
,
sin
2
θ
n
)
,
slerp
(
q
0
,
q
1
;
t
)
=
sin
Ω
sin
(
(
1
−
t
)
Ω
)
q
0
+
sin
(
t
Ω
)
q
1
,
cos
Ω
=
q
0
⋅
q
1
Rotation Lab: Euler Angles vs Quaternions
Euler angles, gimbal lock, unit quaternions and slerp
Animation
Game Dev
3D