But maby we don`t musst to lern everithing.
We could make somthing like vocabularies, I meen it like this;
Lets take vocabularies from german in english:
german
Auto
in englisch
car
And know from lite-c to newton;
lite-c:
action ball()
{
phent_settype(my,PH_RIGID,PH_SPHERE);
phent_setfriction(my,90);
phent_setmass(my,5,PH_SPHERE);
phent_setelasticity(my,75,100);
phent_setdamping(my,30,5);
ph_setgravity(vector(0,0,-500));
}
to newton:
float QUANTTOMETER = 0.03125;
float METERTOQUANT = 32;
#include "NewtonMain2.18.c"
#include "NewtonAPI2.18.c"
NewtonWorld* nworld;
#include "matrix.c"
#include "newton_materials.c"
#include "newton_main.c"
#include "newton_debug.c"
void quit()
{
newton_stop();
}
void newton_start()
{
wait(2);
newton_start();
on_exit = quit;
while(1)
{
newton_update();
wait(1);
}
}
action ball_newt()
{
wait(3);
newton_addentity(me, 5, NEWTON_SPHERE, onforceandtorque);
}
That would be a idea.