/[enigma]/enigma/src/world.cc
ViewVC logotype

Diff of /enigma/src/world.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.72.2.3 by dheck, Wed Sep 24 17:40:27 2003 UTC revision 1.72.2.4 by dheck, Mon Sep 29 08:59:35 2003 UTC
# Line 398  get_accel (Actor *a, const V2 & x, const Line 398  get_accel (Actor *a, const V2 & x, const
398              // Friction              // Friction
399              double vv=length(v);              double vv=length(v);
400              if (vv > 0) {              if (vv > 0) {
401                  V2 frictionf = v * enigma::FrictionFactor*friction;                  V2 frictionf = v * (enigma::FrictionFactor*friction);
402                  frictionf /= vv;                  frictionf /= vv;
403                  frictionf *= pow(vv, 0.8);                  frictionf *= pow(vv, 0.8);
404                  f -= frictionf;                  f -= frictionf;
# Line 448  get_accel (Actor *a, const V2 & x, const Line 448  get_accel (Actor *a, const V2 & x, const
448  static void  static void
449  advance_actor(Actor *a, double time, double h)  advance_actor(Actor *a, double time, double h)
450  {  {
451      const double MAXVEL = 40;      const double MAXVEL = 100;
452    
453      ActorInfo &ai = *a->get_actorinfo();      ActorInfo &ai = *a->get_actorinfo();
454      V2 accel = get_accel(a, ai.pos, ai.vel, time);      V2 accel = get_accel(a, ai.pos, ai.vel, time);

Legend:
Removed from v.1.72.2.3  
changed lines
  Added in v.1.72.2.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26