How do you get a protoplanetary disk

What did you draw?
Post Reply
SussyWussy
Posts: 2
Joined: Wed Mar 12, 2025 9:07 pm

How do you get a protoplanetary disk

Post by SussyWussy »

Please tell me how do you get a disk with mass orbiting a star through code
User avatar
testtubegames
Site Admin
Posts: 1164
Joined: Mon Nov 19, 2012 7:54 pm

Re: How do you get a protoplanetary disk

Post by testtubegames »

Here's some code for that:

Code: Select all

_settings(x: 0, y: 0, zoom: 1);
_add(m: 1000, col: 2, lcol: 2, pic: 0, noGrav, xPinned, yPinned, x: 0, y: 0, t: 0);
_addDisk(x: -37.46, y: 38.75, randAngles, r: 100, rHole: 10, num: 1000, orbx: 0, orby: 0, orbMass: 1000, orbFixed: 1, orbDir: 1, t: 0, m: 1, col: 1, lcol: 0, pic: 2);
The way you can do it by hand would be:
a) add a star
b) select it
c) choose the "disk" object you want to add
d) hold "c" as you add the disk, making sure the star is still selected. (You can select it again by right-clicking.)
SussyWussy
Posts: 2
Joined: Wed Mar 12, 2025 9:07 pm

Re: How do you get a protoplanetary disk

Post by SussyWussy »

Thank you for that it's very helpful
Post Reply