Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
GEMultiplayerInterface Interface Reference

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)
 

Member Function Documentation

◆ AddedBody()

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.

Parameters
nbody

◆ OrbitChanged()

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.

Parameters
nbody
orbitUniversal

◆ RemovedBody()

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.

Parameters
nbody

◆ StateChanged()

void GEMultiplayerInterface.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)

The local GE has an update R, V state for this NBody.

It is assumed this will not result in a network driven update of this object on the client that initiated the request.

Parameters
nbody

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