Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
IForceDelegate Interface Reference
Inheritance diagram for IForceDelegate:
CustomForce ForceR ForceR2 InverseR InverseR3 J2Gravity NewtonForce SelectiveForceBase

Public Member Functions

double[] CalcAccelerationIJPerM (double[] rji, int i, int j, GravityState.NbodyState[] nbodyStates)
 Calculate the acceleration between bodies i and j.
 
double[] CalcAccelerationIPerParticle (double[] rji, int i, GravityState.NbodyState[] nbodyStates)
 
double[] CalcJerkIJPerM (double[] rji, int i, int j, GravityState.NbodyState[] nbodyStates)
 

Member Function Documentation

◆ CalcAccelerationIJPerM()

double[] IForceDelegate.CalcAccelerationIJPerM ( double[]  rji,
int  i,
int  j,
GravityState.NbodyState[]  nbodyStates 
)

Calculate the acceleration between bodies i and j.

Return the aij and aji accelerations because in some case (e.g one is oblate) they will not be equal and opposite!

Parameters
rji
i
j
nbodyStates
Returns

Implemented in CustomForce, ForceR, ForceR2, InverseR, InverseR3, J2Gravity, NewtonForce, SelectiveForceBase, and SelectiveNewton.


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