Gravity Engine 12.0
Unity Asset for Gravity
|
Public Member Functions | |
void | AddedBody (GameObject go, NBody nbody) |
An NBody has been added to the local GE. | |
void | RemovedBody (GameObject body) |
An NBody has been removed from the local GE. | |
void | OrbitChanged (NBody nbody, OrbitUniversal orbitUniversal) |
Local GE has changed a KEPLER mode orbit attached to an NBody. | |
void | StateChanged (NBody nbody) |
Local GE has changed the state of an NBody (i.e. altered it's r or v, likely via the execution of a manuever) | |
void GEMultiplayerInterface.AddedBody | ( | GameObject | go, |
NBody | nbody | ||
) |
An NBody has been added to the local GE.
This information will be propagated to the server and other players.
It is assumed this will not result in a network driven add of this object on the client that initiated the request.
nbody |
void GEMultiplayerInterface.OrbitChanged | ( | NBody | nbody, |
OrbitUniversal | orbitUniversal | ||
) |
Local GE has changed a KEPLER mode orbit attached to an NBody.
The OrbitUniversal (R, V, t) tuple has already been updated internally.
This allows the usual methods for orbit changes (TransferShip, SetVelocity etc.) to be used in the local GE an only when the OrbitUniversal is altered via a new set of RVT values is this synched to the other players.
nbody | |
orbitUniversal |
void GEMultiplayerInterface.RemovedBody | ( | GameObject | body | ) |
An NBody has been removed from the local GE.
This information will be propagated to the server and other players.
It is assumed this will not result in a network driven remove of this object on the client that initiated the request.
nbody |
void GEMultiplayerInterface.StateChanged | ( | NBody | nbody | ) |