Gravity Engine 2 4.0
Loading...
Searching...
No Matches
GravityEngine2.GSDisplayBody Class Reference

Class to display the location of a GSBody in a scene. More...

Inheritance diagram for GravityEngine2.GSDisplayBody:
GravityEngine2.GSDisplayObject

Public Types

enum  DisplayGOMode { ROTATION , VEL_ALIGN , NONE }
 

Public Member Functions

override void AddToSceneDisplay (GSDisplay gsd)
 Each GravitySceneDisplay object will ask scene objects to add themselves so that each display object can specify the type of scene update (and associated info) it requires.
 
override void DisplayEnabledSet (bool value)
 
void ScaleDisplayGO ()
 
- Public Member Functions inherited from GravityEngine2.GSDisplayObject
void AddToSceneDisplay (GSDisplay gsd)
 
bool DisplayEnabled ()
 
int DisplayId ()
 
void DisplayIdSet (int id)
 
GSDisplay GSDisplay ()
 

Public Attributes

float alignYawDeg
 
GravityMath.AxisV3 axisV3
 
bool computeEarthOffset
 
GameObject displayGO
 
DisplayGOMode displayGOMode
 
bool doRotation
 
GSBody gsBody
 
float longitudeOffset
 
bool scaleUsingBodyRadius = true
 
bool showTrajectory
 
LineRenderer trajLine
 
- Public Attributes inherited from GravityEngine2.GSDisplayObject
int framesBetweenUpdates = 0
 

Additional Inherited Members

- Protected Attributes inherited from GravityEngine2.GSDisplayObject
bool displayEnabled = true
 
int displayId = -1
 
int framesUntilUpdate = 0
 countdown until this display object shold update
 
GSDisplay gsd
 

Detailed Description

Class to display the location of a GSBody in a scene.

See https://nbodyphysics.com/ge2/html/SceneComponents.html#gsdisplaybody

Member Function Documentation

◆ AddToSceneDisplay()

override void GravityEngine2.GSDisplayBody.AddToSceneDisplay ( GSDisplay gsd)

Each GravitySceneDisplay object will ask scene objects to add themselves so that each display object can specify the type of scene update (and associated info) it requires.

Parameters
gsd

◆ DisplayEnabledSet()

override void GravityEngine2.GSDisplayBody.DisplayEnabledSet ( bool value)
virtual

Reimplemented from GravityEngine2.GSDisplayObject.


The documentation for this class was generated from the following file: