Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 6, 2017, 3:32:35 PM (7 years ago)
Author:
jkindle
Message:

Lululululululululu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBFigure.cc

    r11383 r11392  
    3939#include "graphics/Camera.h"
    4040
    41 
    4241namespace orxonox
    4342{
     
    5857        lastSpeed_z = 0.0;
    5958
    60         gravityAcceleration_ = 250.0;//8.0
     59        gravityAcceleration_ = 250.0;
     60        pitch_ = 0.0;
    6161
    6262        dead_ = false;
     
    9999        if (firePressed_ && std::abs(velocity.z) < 0.07 && std::abs(lastSpeed_z) < 0.07) {
    100100            velocity.z = 150;
    101         }
     101        }
     102
     103      // rotate(1,getOrientation()* WorldEntity::FRONT)
    102104
    103105        //Left-right movement with acceleration
     
    105107            if (std::abs(velocity.x) < maxvelocity_x) {
    106108                velocity.x += speedAddedPerTick;
     109                // if (pitch_ > 0.0) {
     110                //     pitch -= turn_fac*dt);
     111                // }
    107112            }
    108113        } else if (moveLeftPressed_) {
     
    112117        } else {
    113118            velocity.x /= 1.1;
    114         } 
    115        
     119        }
     120
    116121
    117122        velocity.z -= gravityAcceleration_*dt;
     
    134139
    135140
     141
    136142    }
    137143
     
    149155
    150156}
    151 
    152 
    153 
    154 
    155 
    156    /* void SOBFigure::CollisionWithEnemy(SOBEnemy* enemy)
    157     {
    158         if (rocketActive_ == nullptr && propellerActive_ == nullptr && shieldActive_ == nullptr)
    159         {
    160             dead_ = true;
    161         }
    162     }*/
    163157
    164158
Note: See TracChangeset for help on using the changeset viewer.