Attitude of the body in its frame (quaternion [x, y, z, w]), e.g. to orient its texture.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Sphere), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | q(4) |
quaternion [x, y, z, w] (normalized here) |
subroutine set_sphere_attitude(self, q) class(Sphere), intent(inout) :: self real(wp), intent(in) :: q(4) !! quaternion [x, y, z, w] (normalized here) self%sphere_attitude_ = quat_normalize(q) call update_sphere_transform(self) end subroutine set_sphere_attitude