Navigation
API > API/Plugins > API/Plugins/CelestialVault
Runtime structure to store the computed properties of a Planetary Body, for any Query.
| Name | FPlanetaryBodyInfo |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/CelestialVault/Source/CelestialVault/Public/CelestialDataTypes.h |
| Include Path | #include "CelestialDataTypes.h" |
Syntax
USTRUCT (BlueprintType )
struct FPlanetaryBodyInfo
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Age | double | Indication of the lunar age. 0 = New Moon, 0.25 = First quarter, 0.5 = Full Moon, 1 = Next New Moon | CelestialDataTypes.h |
|
| ApparentDiameterDegrees | double | The True apparent diameter of the body seen from Earth (Angular size, in degrees) | CelestialDataTypes.h |
|
| ApparentMagnitude | double | The Magnitude of the body seen from Earth | CelestialDataTypes.h |
|
| DEC | double | The Body Declination in the Celestial Frame - In Degrees | CelestialDataTypes.h |
|
| DirectionTowardEarth | FVector | Keep track of the location toward the Earth | CelestialDataTypes.h |
|
| DistanceInAU | double | The Body distance to Earth - In Astronomical Units! | CelestialDataTypes.h |
|
| IlluminationPercentage | double | Indication of percentage of a full moon illumination | CelestialDataTypes.h |
|
| ISMInstanceIndex | int32 | Internal value of the ISM Instance corresponding to this planet | CelestialDataTypes.h |
|
| Name | FString | The body Name | CelestialDataTypes.h |
|
| OrbitType | EOrbitType | One of the predefined body types (Solar system planets), any custom one for fantasy planets | CelestialDataTypes.h |
|
| RA | double | The Body Right Ascension in the Celestial Frame - In hours! | CelestialDataTypes.h |
|
| Radius | double | The Body Radius in Kilometers | CelestialDataTypes.h |
|
| ScaledApparentDiameterDegrees | double | The Scaled apparent diameter of the body seen from Earth (Angular size, in degrees) Takes the fake scaling factor into consideration, so useful for camera FOV tracking. | CelestialDataTypes.h |
|
| UETransform | FTransform | Keep track of the Vault-relative transform, at ToD = 0 for animated bodies (Moon) | CelestialDataTypes.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ComputeTranform
(
double UEDistance, |
CelestialDataTypes.h | ||
FString ToString() |
Can't use a UFUNCTION inside a struct --> Use the Celestial Maths Blueprint Function Library. | CelestialDataTypes.h |