Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 26, 2006, 6:02:02 PM (18 years ago)
Author:
patrick
Message:

spl ground walking beter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/lib/collision_reaction/cr_physics_ground_walk.cc

    r8796 r8812  
    11/*
    22   orxonox - the future of 3D-vertical-scrollers
    3  
     3
    44   Copyright (C) 2004 orx
    5  
     5
    66   This program is free software; you can redistribute it and/or modify
    77   it under the terms of the GNU General Public License as published by
    88   the Free Software Foundation; either version 2, or (at your option)
    99   any later version.
    10  
     10
    1111   ### File Specific:
    1212   main-programmer: Patrick Boenzli
     
    6666  Vector height;
    6767  AABB* box = collision->getEntityB()->getModelAABB();
    68  
    69  
    70  
     68
     69
     70
    7171  if(box!=NULL)
    7272    height = ( ce->getCollisionPosition() - collision->getEntityB()->getAbsCoor() )*(-1.0f) ;
     
    9090      return;
    9191    }
    92    
    93    
     92
     93
    9494    if(ce->getGroundNormal().len() >= 1.4f) {
    9595      downspeed++;
     
    101101    if(height.y > box->halfLength[1] + 0.0f ) // Above ground
    102102    {
    103       if(height.y < box->halfLength[1] + 1.3f) // Snap in
     103      if(height.y < box->halfLength[1] + 2.3f) // Snap in
    104104      {
    105105        downspeed = 0;
     
    131131
    132132  */
     133
    133134}
    134135
Note: See TracChangeset for help on using the changeset viewer.