The body's transform: its position, attitude and scale (radii / the built radii); nothing before it is built.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(Sphere), | intent(inout) | :: | self |
subroutine update_sphere_transform(self) type(Sphere), intent(inout) :: self if (.not. c_associated(self%sphere_node)) return if (vkf_transform_set_matrix(self%sphere_node, frame_matrix(self%sphere_position_, self%sphere_attitude_, & self%radii() / self%built_radii)) /= 0) & write(*, '(a)') 'vkframes: Sphere '//self%name()//': transform failed' end subroutine update_sphere_transform