Attitude of the model in its frame (quaternion [x, y, z, w]).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Model), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | q(4) |
quaternion [x, y, z, w] (normalized here) |
subroutine set_model_attitude(self, q) class(Model), intent(inout) :: self real(wp), intent(in) :: q(4) !! quaternion [x, y, z, w] (normalized here) self%model_attitude_ = quat_normalize(q) call update_model_transform(self) end subroutine set_model_attitude