Navigation
API > API/Plugins > API/Plugins/CelestialVault
Runtime structure to store the properties common to all Celestial Bodies
| Name | FCelestialBody |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/CelestialVault/Source/CelestialVault/Public/CelestialDataTypes.h |
| Include Path | #include "CelestialDataTypes.h" |
Syntax
USTRUCT (BlueprintInternalUseOnly)
struct FCelestialBody
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FCelestialBody() |
CelestialDataTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DEC | double | The Body Declination of date (topocentric, from observer lat/lon) | CelestialDataTypes.h |
|
| DECGeocentric | double | The Body Declination of date (geocentric) - used for 3D scene placement. In Degrees. | CelestialDataTypes.h |
|
| DECJ2000 | double | The Body J2000 Declination (topocentric, from observer lat/lon) - 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 |
|
| Magnitude | double | The Magnitude of the Body seen from Earth | CelestialDataTypes.h |
|
| Name | FString | The Body Name | CelestialDataTypes.h |
|
| OrbitType | EOrbitType | One of the predefined Orbit types (Solar system planets), any custom one for fantasy planets | CelestialDataTypes.h |
|
| RA | double | The Body Right Ascension of date (topocentric, from observer lat/lon) | CelestialDataTypes.h |
|
| Radius | double | The Body Radius in Kilometers | CelestialDataTypes.h |
|
| RAGeocentric | double | The Body Right Ascension of date (geocentric) - used for 3D scene placement. In hours. | CelestialDataTypes.h |
|
| RAJ2000 | double | The Body J2000 Right Ascension (topocentric, from observer lat/lon) - In hours! | CelestialDataTypes.h |
|
| UELocalTransform | 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 |
|---|---|---|---|
FString ToString() |
Can't use a UFUNCTION inside a struct --> Use the Celestial Maths Blueprint Function Library. | CelestialDataTypes.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ComputeUELocalTransform
(
double ExtraScale, |
From the properties of this Celestial Body, compute the associated UE Transform, considering the following arguments | CelestialDataTypes.h |