Class in Zendir.Universe | Inherits from UniverseModel

Declaration

class GravityModel;

Description

A Gravity Effector class is able to calculate the Gravity at some location in respect to all of the bodies in the Universe that are spawned.


Properties

DeclaredDescription
AccelerationThe local gravitational attraction
Out_GravityMsgThe gravitational message that describes the gravitational energyand acceleration of the object.
PotentialEnergyThe gravitational potential energy of the object
InheritedDescription
IsEnabledIs true if the object is currently enabled.
NameThe display name or tag of this object.
ParentThe currently attached parent object.

Methods

InheritedDescription
DestroyRemoves the current object from the simulation.
FindParentWithIDReturns an attached parent that satisfies the specified ID.
FindParentWithTypeReturns an attached parent that satisfies the specified type.
FindRootWithIDReturns a root object that satisfies the specified ID.
FindRootWithTypeReturns a root object that satisfies the specified type.