Hi, all, I'm using the Lite-C free version and A6.60 Commercial.
I don't know why, but I have to put in
massive values for my physics forces if I want them to work properly.
I don't know if this is due to my objects being too massive or not.
Could it be because I'm compiling my levels with A6? It might be the rendering tree that's causing the problems. I don't know.
Here's my
Code:
#include <acknex.h>
#include <default.c>
action phys_obj()
{
phent_settype(me,PH_RIGID,PH_BOX);
phent_setmass(me,2,PH_BOX);
phent_setelasticity(me,10,5);
phent_setfriction(me,35);
}
action phys_ball()
{
phent_settype(me,PH_RIGID,PH_SPHERE);
phent_setmass(me,5,PH_SPHERE);
phent_setfriction(me,70);
phent_setelasticity(me,10,5);
phent_setdamping(me,0,0);
while(1)
{
phent_addcentralforce(me,vector(1000 * (key_cul - key_cur),0,0));
phent_addcentralforce(me,vector(0,1000 * (key_cud - key_cuu),0));
camera.x= my.x;
camera.y= my.y + 100;
camera.z= my.z + 100;
camera.pan= -90;
camera.tilt= -40;
wait(1);
}
}
void main()
{
video_mode= 8;
video_screen= 1;
level_load("line3d_etst.wmb");
wait(3);
ph_setgravity(vector(0,0,-300));
ph_fps_max_lock= 75;
ent_create("earth.mdl",vector(100,0,0),phys_ball);
wait(1);
ent_create("dummy.mdl",vector(-17,0,0),phys_obj);
ent_create("dummy.mdl",vector(17,0,0),phys_obj);
ent_create("dummy.mdl",vector(0,-17,0),phys_obj);
ent_create("dummy.mdl",vector(0,17,0),phys_obj);
ent_create("dummy.mdl",nullvector,phys_obj);
}