Gravity Engine 12.0
Unity Asset for Gravity
Loading...
Searching...
No Matches
LagrangePoint Class Reference

Place a game object or initialize an NBody at the specified Lagrange point with the indicated offset from the Lagrange point. More...

Inheritance diagram for LagrangePoint:

Public Types

enum  Type {
  L1 , L2 , L3 , L4 ,
  L5
}
 
enum  OffsetUnits { ABSOLUTE , RELATIVE }
 

Detailed Description

Place a game object or initialize an NBody at the specified Lagrange point with the indicated offset from the Lagrange point.

Lagrange points are very sensitive to initial conditions:

  • objects must be placed at the radius with respect the center of mass of the binary system
  • L1, L2 and L3 are inherently unstable
  • L4 and L5 are stable when m2/(m1+m2) less than 0.0385 (See Murray and Dermott, Solar System Dynamics Ch3).

(optional) hostNBody indicates the attached NBody should be initialized at the specified Lagrange point and then left to evolve freely. (If not present then the gameObject hosting this script will be moved every frame to


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