< 2.3.1.2 Groups 2.3.2 Compute position >

2.3.1.3  Bodies

Parameters of the bodies are shown in Table 3:

 

No Parameter Type Control type
1 Body name char [32] edit
2 Body mass and diameter double edit
3 Body position and velocity vectors double edit
4 Body group int list box
5 Body color color push button
6 Body selection bit check box
7 Body holding bit check box

Table 3. Body parameters

 

Figure 6 show a part of the window to change body parameters, including illustrative data:

 

Figure 6. Change body parameters

 

2.3.1.3.1  Body name

To be given as compulsory, the name of a body shall be minimum 1 or maximum 32 characters long. Two or more bodies may have the same name, since the program identifies them based on their place in the line rather than their name. So, priority is given to bodies, which is the lowest for the first and the highest for the last one.

 

2.3.1.3.2  Body mass and diameter

A number of double type each to define the body mass and diameter. None of them shall have zero or a lower value.

 

2.3.1.3.3  Body position and velocity vectors

Two-dimension values, their components x and y shall be given separately. The position vector states a place as compared to the origin of coordinates. The velocity vector does the velocity as compared to the body location. Values are numbers of double type.

 

2.3.1.3.4  Body group

The body will belong to the selected Groups. One body may belong to more groups, or neighter. It is possible to display and Stick the common Mass center of the bodies, belong to the same group.

 

2.3.1.3.5  Body color

It is the color of a body. It is an RGB value.

 

2.3.1.3.6  Body selection

Bodies may be selected or non-selected (see Selection). Selected bodies incorporate a temporary group, and if loosing their selection, they get back into their original group. Selected bodies are visible in the color of selection (see Background, selection and information color) and certain operations may be executed on them (see Edit selected body by using the mouse).

 

2.3.1.3.7  Body holding

Bodies may be holded, what means, in Simulation state these hold its position and velocity vectors (see Body position and velocity vectors), so they don’t move according to the coordinate system.

In Edit state above a holded body, the text of the Mouse pointer is underlined.

 

 

 

 

 


< 2.3.1.2 Groups 2.3.2 Compute position >