Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2017, 2:21:11 PM (7 years ago)
Author:
varxth
Message:

Collisionshape of fireball

Location:
code/branches/SOBv2_HS17
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SOBv2_HS17/data/levels/SOB.oxw

    r11573 r11597  
    6464        </Template>
    6565
    66                                         <!--Test Fireball-->
    67 
    6866
    6967        <Template name=fireball>
    70                 <SOBFireball collisionType="dynamic" speed=80>
     68                <SOBFireball collisionType="dynamic" speed=90>
    7169                        <attached>
    7270                                <Model mesh="planets/sol.mesh" position="0,0,0" scale=3 pitch=90/>
     
    7472                        </attached>
    7573                        <collisionShapes>
    76                                 <SphereCollisionShape position="0,0,0" halfExtents="5,5,5" />                   
     74                                <SphereCollisionShape position="0,0,0" radius="3" />                   
    7775                        </collisionShapes>
    7876                </SOBFireball>
  • code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFigure.cc

    r11592 r11597  
    160160
    161161        else if (fireball != nullptr && !(fireball->hasCollided_)){
    162             //this-> die();
     162            PowerUpCounter_--;
     163            this->changeClothes();
    163164        }
    164165
  • code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFireball.cc

    r11577 r11597  
    165165            velocity.x = dir*speed_;
    166166            velocity.y = 0;
    167             if(hitCounter_ >= 3) velocity.y = 50;
     167            if(hitCounter_ >= 3) velocity.y = 0.1*speed_;
    168168            setVelocity(velocity);
    169169
  • code/branches/SOBv2_HS17/src/modules/superorxobros/SOBQBlock.cc

    r11591 r11597  
    6565        float v_z = otherObject->getVelocity().z;
    6666        int collDisZ_ = getPosition().z - contactPoint.getPositionWorldOnB().getZ();
    67         orxout() << "Distanz in z: " << collDisZ_ << endl;
    6867        if (!used_ && v_z > 50.0 && collDisZ_ > 0) {
    6968            used_ = true;
Note: See TracChangeset for help on using the changeset viewer.