Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2017, 9:21:25 AM (8 years ago)
Author:
vyang
Message:

Kommentare hinzugefuegt und Projektile in die richtige Richtung ausgerichtet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/src/modules/asteroids2D/Asteroids2DWeapon.cc

    r11660 r11668  
    9393        this->computeMuzzleParameters(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getAimPosition());
    9494
    95         //projectile->setOrientation(this->getGame()->getPlayer()->getOrientation());
    96         projectile->setPosition(this->getMuzzlePosition());
    97 
     95        projectile->setOrientation(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getOrientation());
     96        projectile->setPosition(this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getPosition());
    9897
    9998        //auf 2D Ebene druecken
    100         Vector3 muzzle2D = this->getMuzzleDirection();
     99        Vector3 muzzle2D = this->getWeapon()->getWeaponPack()->getWeaponSystem()->getPawn()->getOrientation()* WorldEntity::FRONT;
    101100        muzzle2D.y = 0;
    102101
Note: See TracChangeset for help on using the changeset viewer.