1) I created a simple 256x256x4096 (widthxdepthxheight) map and I added at the very top a physics_ball entity in radiant
2) In ssqc I add this:
Code: Select all
void physics_ball()
{
self.classname = "ball";
self.movetype = MOVETYPE_PHYSICS;
self.solid = SOLID_PHYSICS_SPHERE;
physics_enable(self,TRUE);
self.mass = 15.4;
self.friction = 0.4;
self.bouncefactor = 0.1;
precache_model("models/ball.iqm");
setmodel(self, "models/ball.iqm");
setorigin (self, self.origin);
}
With Darkplaces engine (same map, same code) physics entity falls normal, like a normal physics object. If I query fte with physcs_ode_enable, console says 1, so physics is enabled. I tried every dll possible, but for win32 fte wants ode_double.dll, libstdc++-6.dll and libgcc_s_sjlj-1.dll. With DP I had to rename libode-3.dll(that comes with the darkplaces autobuild package) to libode1.dll to make it work. With dp no other libs was needed for physics.
I also tried to toggle mass, friction and bouncefactor on|off but nothing changed.
Thanks guys