Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8341 in orxonox.OLD for branches/bsp_model/src/world_entities


Ignore:
Timestamp:
Jun 13, 2006, 12:00:01 PM (18 years ago)
Author:
patrick
Message:

bsp: better debug output

Location:
branches/bsp_model/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/world_entities/space_ships/collision_probe.cc

    r8338 r8341  
    4545{
    4646  this->init();
     47
    4748  if (root != NULL)
    4849    this->loadParams(root);
    49 
    5050}
    5151
     
    6666  this->loadMD2Texture("maps/dr_freak.pcx");
    6767  this->loadModel("models/dr_freak.md2");
     68
     69  this->localVelocity = Vector(0,-4,0);
    6870}
    6971
     
    9799  if( likely(this->getModel(0) != NULL))
    98100    ((MD2Model*)this->getModel(0))->tick(time);
     101
     102  this->shiftCoor(this->localVelocity * time);
    99103}
     104
    100105
    101106/**
  • branches/bsp_model/src/world_entities/space_ships/collision_probe.h

    r8338 r8341  
    99#include "playable.h"
    1010
    11 class Vector;
    12 
     11#include "vector.h"
    1312
    1413class CollisionProbe : public Playable
     
    5251    int                   controlVelocityY;
    5352
     53    Vector                localVelocity;      //!< velocity this entity flights with
    5454
    5555};
  • branches/bsp_model/src/world_entities/world_entity.cc

    r8219 r8341  
    7777
    7878  // registering default reactions:
    79   this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, CL_WORLD_ENTITY);
    80   this->subscribeReaction(CREngine::CR_PHYSICS_GROUND, CL_TERRAIN);
     79//   this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, CL_WORLD_ENTITY);
    8180
    8281  this->toList(OM_NULL);
Note: See TracChangeset for help on using the changeset viewer.