Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2017, 2:14:15 PM (7 years ago)
Author:
varxth
Message:

better than evver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SOBv2_HS17/src/modules/superorxobros/SOBGumba.cc

    r11629 r11650  
    124124
    125125        Vector3 velocity = getVelocity();
     126        if(velocity.z > -1 && velocity.z < 1)
     127        {
     128            velocity.x = dir*speed_;
     129        }     
     130
    126131        velocity.z -= gravityAcceleration_*dt;
    127         velocity.x = dir*speed_;
    128132        setVelocity(velocity);
    129133
Note: See TracChangeset for help on using the changeset viewer.