Example #1
0
void VART::Human::RotateOnY(float radians)
{
    // Modify the position transform
    Transform rotation;
    Point4D rotCenter;
    ComputeStickPosition(&rotCenter);
    rotation.MakeRotation(rotCenter, Point4D::Y(), radians);
    position.CopyMatrix(rotation * position);
    // Modify the forward vector
    rotation.ApplyTo(&forward);
}