Position of the body's center in its frame.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(Sphere), | intent(inout) | :: | self | |||
| real(kind=wp), | intent(in) | :: | position(3) |
scene units |
subroutine set_sphere_position(self, position) class(Sphere), intent(inout) :: self real(wp), intent(in) :: position(3) !! scene units self%sphere_position_ = position call update_sphere_transform(self) end subroutine set_sphere_position