Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3213 in orxonox.OLD for orxonox/trunk/src/camera.cc


Ignore:
Timestamp:
Dec 18, 2004, 2:54:59 AM (21 years ago)
Author:
patrick
Message:

orxonox/trunk: enhanced the CommandNode - cleaning up garbage doing the wash etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/camera.cc

    r3175 r3213  
    279279  \param entity: The enitity to bind the camera to
    280280       
    281         This sets the focus of the camera to the given entity. This means that it will use the given WorldEntity's
    282         Location and get_lookat() to determine the viewpoint the camera will render from.
    283         Note that you cannot bind a camera to a free entity.
     281  This sets the focus of the camera to the given entity. This means that it will use the given WorldEntity's
     282  Location and get_lookat() to determine the viewpoint the camera will render from.
     283  Note that you cannot bind a camera to a free entity.
    284284*/
    285285void Camera::bind (WorldEntity* entity)
     
    287287  if( entity != NULL)
    288288    {
    289       if( entity->isFree ()) printf("Cannot bind camera to free entity");
     289      if( entity->isFree()) printf("Cannot bind camera to free entity");
    290290      else
    291291        {
    292           bound = entity;
     292          this->bound = entity;
    293293        }
    294294    }
     
    300300  this->world = world;
    301301}
     302
     303
     304/**
     305   \brief destroy, reset the camera so that it doesn't perform anything anymore
     306
     307*/
     308void Camera::destroy()
     309{
     310  this->bound = NULL;
     311  this->world = NULL;
     312}
Note: See TracChangeset for help on using the changeset viewer.