Changeset 3213 in orxonox.OLD for orxonox/trunk/src/camera.cc
- Timestamp:
- Dec 18, 2004, 2:54:59 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/camera.cc
r3175 r3213 279 279 \param entity: The enitity to bind the camera to 280 280 281 282 283 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. 284 284 */ 285 285 void Camera::bind (WorldEntity* entity) … … 287 287 if( entity != NULL) 288 288 { 289 if( entity->isFree 289 if( entity->isFree()) printf("Cannot bind camera to free entity"); 290 290 else 291 291 { 292 bound = entity;292 this->bound = entity; 293 293 } 294 294 } … … 300 300 this->world = world; 301 301 } 302 303 304 /** 305 \brief destroy, reset the camera so that it doesn't perform anything anymore 306 307 */ 308 void Camera::destroy() 309 { 310 this->bound = NULL; 311 this->world = NULL; 312 }
Note: See TracChangeset
for help on using the changeset viewer.