Difference between revisions of "Oolite JavaScript Reference: Sun"
From Elite Wiki
(New page: <small>'''Prototype:''' <code>Entity</code></small><br /> <small>'''Subtypes:''' none {{Oolite-future-scripting}} The '''<code>Sun</code>'''...) |
(Changed future-scripting tag to added-in-1.70, updated links.) |
||
Line 1: | Line 1: | ||
− | <small>'''Prototype:''' <code>[[Oolite |
+ | <small>'''Prototype:''' <code>[[Oolite JavaScript Reference: Entity|Entity]]</code></small><br /> |
<small>'''Subtypes:''' none |
<small>'''Subtypes:''' none |
||
− | {{Oolite- |
+ | {{Oolite-class-added|1.70}} |
− | The '''<code>Sun</code>''' class is an <code>[[Oolite |
+ | The '''<code>Sun</code>''' class is an <code>[[Oolite JavaScript Reference: Entity|Entity]]</code> representing a sun. A <code>Sun</code> has all the properties and methods of a <code>Entity</code>, and several others. Currently, Oolite supports at most one sun per system, accessible via the <code>[[Oolite JavaScript Reference: System|system]].[[Oolite JavaScript Reference: System#sun|sun]]</code> property. |
=== radius === |
=== radius === |
||
'''radius''' : Number (read-only) |
'''radius''' : Number (read-only) |
||
The equatorial radius of the sun, in metres. |
The equatorial radius of the sun, in metres. |
||
+ | |||
+ | [[Category:Oolite scripting]] |
Revision as of 12:34, 6 December 2007
Prototype: Entity
Subtypes: none
This class was added in Oolite test release 1.70.
The Sun
class is an Entity
representing a sun. A Sun
has all the properties and methods of a Entity
, and several others. Currently, Oolite supports at most one sun per system, accessible via the system.sun
property.
radius
radius : Number (read-only)
The equatorial radius of the sun, in metres.