Each row represents an object (up to 99, the matrix limit) and each column represents a property of that object.Ĭolumn 1: The mass of the object (negative masses work too)Ĭolumn 2: The current X-position of the objectĬolumn 3: The current Y-position of the objectĬolumn 4: The current X-velocity of the objectĬolumn 5: The current Y-velocity of the objectĬolumn 6: The previous X-position of the object (used for drawing lines, internal use)Ĭolumn 7: The previous Y-position of the object (used for drawing lines, internal use)Ĭolumn 8: If circle drawing is enabled, this is the radius of the circle. Matrices are used to represent the objects. The demo is included in the program, but you can make your own gravitational configurations by editing the matrix and loading it with the 'LOAD ' option. This program simulates gravitational interactions with m1*m2/d^2 and F=ma. If the software has been edited in any way, please provide appropriate notice. You may distribute this software, provided this notice is included.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |