Add start of ship rendering
This commit is contained in:
parent
4a253b0184
commit
704c82838a
15 changed files with 199 additions and 13 deletions
10
js/world/celestial.mjs
Normal file
10
js/world/celestial.mjs
Normal file
|
@ -0,0 +1,10 @@
|
|||
import Body from './body.mjs';
|
||||
|
||||
export default class Celestial extends Body {
|
||||
constructor(x, y, radius, {
|
||||
density = 1,
|
||||
mass = (radius ** 2) * density
|
||||
}) {
|
||||
super(x, y, mass);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue