Command
|
Syntax
|
Function
|
sin
|
sin(val)
|
Computes
the sine of val
|
cos
|
cos(val)
|
Computes
the cosine of val
|
tan
|
tan(val)
|
Computes
the tangent of val
|
+
|
v1
+ v2
|
Evaluates
v1 + v2
|
-
|
v1 - v2
|
Evaluates
v1 - v2
|
*
|
v1
* v2
|
Evaluates
v1 * v2
|
/
|
v1
/ v2
|
Evaluates
v1 / v2
|
^
|
v1
^ v2
|
Evaluates
v1^ v2
|
m_setg
|
m_setg val
|
Sets
the Gravitational Constant
|
m_setk
|
m_setk val
|
Sets
the Electrostatic Constant
|
m_body
|
m_body name
|
Creates
a mechanical body named name
|
m_setmass
|
m_setmass name val
|
Assigns
mass val to body name
|
m_setcharge
|
m_setcharge name val
|
Charges
body name with charge value val
|
m_setsize
|
m_setsize name val
|
Sets
the size of body name with radius val
|
m_setpos
|
m_setpos name x y z
|
Places
body name at <x,y,z> vector position
|
m_setvel
|
m_setvel vx vy vz
|
Sets
the initial velocity as the vector <vx,vy,vz>
|
m_setacc
|
m_srtacc ax ay az
|
Initial
acceleration is set to <ax ay az> vector
|
m_show
|
m_show name
|
Display
details of body name
|
render
|
render
|
Start
rendering the simulation
|
exit
|
exit
|
Exits
The Physicist
|