9.4 Implementing the Mathematics 173
The angular v elocity quaternion, ω
ˆ
,hasazerow component, and the remaining
componen ts taken directly from the three components of the angular velocity vector.
It doesn’t represent an orientation, so it shouldn’t be normalized.
Note in Equation 9.5 that the mult iplication (between ω
ˆ
and θ
ˆ
)isaquaternion
multiplication, not a vector multiplication.
9.3.1 Velocity of a Point
In Section 9.1.3, we calculated the position of part of an object even when it had been
moved and rotated. To process collisions between objects in Chapter 14 we’ll also need
to be able to calculate the velocity of any point of an object.
The velocity of a point on an object depends on both its linear and angular
velocity:
˙
q =
˙
θ × (q − p) +
˙