The body casting the shadow (it must stay alive while set), and its radius (optional: see set_body_radius).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(ShadowCones), | intent(inout) | :: | self | |||
| class(ReferenceFrame), | intent(in), | target | :: | body |
the body casting the shadow (not owned) |
|
| real(kind=wp), | intent(in), | optional | :: | radius |
scene units (see set_body_radius) |
subroutine set_body(self, body, radius) class(ShadowCones), intent(inout) :: self class(ReferenceFrame), intent(in), target :: body !! the body casting the shadow (not owned) real(wp), intent(in), optional :: radius !! scene units (see set_body_radius) self%body_ => body if (present(radius)) call self%set_body_radius(radius) end subroutine set_body