Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2014, 3:59:37 PM (9 years ago)
Author:
sriedel
Message:

Working version, Blockpattern are strange.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/surfaceraceHS14/src/modules/dodgerace2/DodgeRaceShip.cc

    r10128 r10135  
    4242        RegisterObject(DodgeRaceShip);
    4343
    44         speed = 500;
     44        speed = 800;
    4545        isFireing = false;
    4646        damping = 10;
     
    8282                    }
    8383            }
     84            /*
    8485            if (pos.z + dist_x > 42*2.5 || pos.z + dist_x < -42*3)
    85                 velocity.x = 0;
     86            {
     87                velocity.x = 0;
     88            }
     89            */
    8690            pos += Vector3(1000 + velocity.y, 0, velocity.x) * dt;
    8791        }
     
    99103        if (camera != NULL)
    100104        {
    101             camera->setPosition(Vector3(-pos.z, -posforeward, 0));
     105            // camera->setPosition(Vector3(-pos.z, -posforeward, 0));
    102106            camera->setOrientation(Vector3::UNIT_Z, Degree(0));
    103107        }
     
    145149    void DodgeRaceShip::boost(bool bBoost)
    146150    {
    147         isFireing = bBoost;
     151        //isFireing = bBoost;
    148152    }
    149153
    150154    inline bool DodgeRaceShip::collidesAgainst(WorldEntity* otherObject, btManifoldPoint& contactPoint)
    151155    {
     156        /*
    152157        if (otherObject != NULL && lastEntity != otherObject)
    153158        {
    154159                lastEntity = otherObject;
    155160                removeHealth(20);
    156             //this->death();
    157161        }
     162                */
    158163
     164
     165        this->death();
    159166        return false;
    160167    }
Note: See TracChangeset for help on using the changeset viewer.