Class: planet

planet

Planet physics

Constructor

new planet()

Source:
Requires:
  • module:vec3

Requires

  • module:vec3

Methods

getGravity() → {vec3}

Returns the force of gravity pulling this planet towards that one
Source:
Returns:
Type
vec3

toString() → {String}

Returns a string representation of the planet
Source:
Returns:
Type
String