Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2849 in orxonox.OLD for orxonox/branches/buerli/src


Ignore:
Timestamp:
Nov 13, 2004, 1:34:37 AM (20 years ago)
Author:
adrian
Message:

orxonox/branches/buerli: Physics engine V1 → before new inheritance structure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/buerli/src/IPhys.cc

    r2617 r2849  
    3030// Simulation
    3131void IPhys::simIterate(Uint32 deltaT){
     32        Vector Accel;
    3233        switch (behav) {
    3334        case B_MASS_POINT:
     35                Accel = resForce / m;
     36                vel = vel + (Accel * deltaT);
     37                pos = pos + (vel * deltaT);
    3438        break;
    3539        case B_RIGID_BODY:
     
    3842        break;
    3943        case I_SPRING_LINEAR:
     44               
    4045        break;
    4146        case I_DMPSPR_LINEAR:
     
    5560        default:;
    5661        }
     62        resForce = Vector(0,0,0);
    5763};
    5864
Note: See TracChangeset for help on using the changeset viewer.