Fix saved games a little. Should no longer cause issues with hexen2,ad,etc.
Fix black lightmaps in h2mp. Fix missing tinyfont in hexen2. Added the drop part of drag+drop to x11. Hopefully fixed x11 clipboard issues. Hidden some annoying developer prints under developer 2. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5298 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
3fb88f2ec2
commit
0980455e10
31 changed files with 866 additions and 272 deletions
|
@ -79,7 +79,7 @@ void World_Bullet_Init(void)
|
|||
physics_bullet_enable = pCvar_GetNVFDG("physics_bullet_enable", "1", 0, "", "Bullet");
|
||||
physics_bullet_maxiterationsperframe = pCvar_GetNVFDG("physics_bullet_maxiterationsperframe", "10", 0, "FIXME: should be 1 when CCD is working properly.", "Bullet");
|
||||
physics_bullet_framerate = pCvar_GetNVFDG("physics_bullet_framerate", "60", 0, "", "Bullet");
|
||||
pr_meshpitch = pCvar_GetNVFDG("r_meshpitch", "-1", 0, "", "Bullet");
|
||||
pr_meshpitch = pCvar_GetNVFDG("r_meshpitch", "-1", 0, "", "Bullet");
|
||||
}
|
||||
|
||||
void World_Bullet_Shutdown(void)
|
||||
|
@ -1259,9 +1259,10 @@ static void World_Bullet_Frame_BodyFromEntity(world_t *world, wedict_t *ed)
|
|||
ed->rbe.body.body = (void*)body;
|
||||
|
||||
//motion threshhold should be speed/physicsframerate.
|
||||
//Threshhold enables CCD when the object moves faster than X
|
||||
//FIXME: recalculate...
|
||||
body->setCcdMotionThreshold((geomsize[0]+geomsize[1]+geomsize[2])*(4/3));
|
||||
//radius should be the body's radius
|
||||
//radius should be the body's radius, or smaller.
|
||||
body->setCcdSweptSphereRadius((geomsize[0]+geomsize[1]+geomsize[2])*(0.5/3));
|
||||
|
||||
ctx->dworld->addRigidBody(body, ed->xv->dimension_solid, ed->xv->dimension_hit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue