CodeBase - Gravity

Return to the CodeBase listing

Category: Miscellaneous

Version: 1.0

0
0

Information

Uploaded: 16th Jan 2004 11:08

Modified: 16th Jan 2004 11:19

Author:  BigMax

Summary

A simple test 4 use a Gravity.

Full Description

Use Max 10 Object.<br /> <br /> 2 world variables:<br /> <br /> Gravita#=world gravity<br /> Attrito#=world attrition<br /> <br /> Any object (Sphere) must be defined like &quot;Rem Create Object 1&quot;<br /> <br /> so<br /> 1) creation,texture and real position of object<br /> 2) Insert all info in Oggetti(x), where<br /> 2.1) NObj = object number<br /> 2.2) PX = xposition<br /> 2.3) PY = yposition<br /> 2.4) PZ = zposition<br /> 2.5) RX = xangle<br /> 2.6) RY = yangle<br /> 2.7) RZ = zangle<br /> 2.8) ForzaX = power in the x axle<br /> 2.9) ForzaY = power in the y axle<br /> 2.10) ForzaZ = power in the z axle<br /> 2.11) Size = the Object's size.<br /> 2.12) Peso = the Object's weight<br /> 2.13) Rimbalzo = the Object's materials (1 = like rubber, 2 or + = iron)<br /> <br /> In this example the object 1 is on the floor and take a power of 100 to up (Y Axle).<br /> <br /> If you want to modify this test, an example could be that of an object that falls from the top.<br /> <br /> Rem Create Object 1<br /> Make object sphere 1,50<br /> Texture Object 1,2<br /> Position Object 1,0,500,0<br /> Oggetti(1).NObj=1<br /> Oggetti(1).PX=0<br /> Oggetti(1).PY=500<br /> Oggetti(1).PZ=0<br /> Oggetti(1).RX=0<br /> Oggetti(1).RY=0<br /> Oggetti(1).RZ=0<br /> Oggetti(1).ForzaX=0<br /> Oggetti(1).ForzaY=0<br /> Oggetti(1).ForzaZ=0<br /> Oggetti(1).Size=50<br /> Oggetti(1).Peso=1<br /> Oggetti(1).Rimbalzo=1.4<br /> rem End Create Object 1<br /> <br /> <br />

Comments

No comments yet.