Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2009, 12:57:06 AM (15 years ago)
Author:
scheusso
Message:

first attempts to have synchronised fire direction and target
however client cannot select targets yet (probably because of classtreemask hack)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc

    r6111 r6112  
    8181    void NewHumanController::tick(float dt)
    8282    {
    83         if( !this->controllableEntity_->isInMouseLook() )
     83        if( this->controllableEntity_ && !this->controllableEntity_->isInMouseLook() )
    8484        {
    8585            this->crossHairOverlay_->setPosition(Vector2(static_cast<float>(this->currentYaw_)/2*-1+.5-overlaySize_/2, static_cast<float>(this->currentPitch_)/2*-1+.5-overlaySize_/2));
     
    185185            pawn->setTarget( 0 );
    186186        }
    187 
    188     //return mouseRay.getOrigin() + mouseRay.getDirection() * 1200;
    189187   
    190188
Note: See TracChangeset for help on using the changeset viewer.