CCameraTarget Class Reference

Camera Target class.
Stores the position, angle, and entity pointer used as the target for all cameras. More...

#include <cameraTarget.h>

List of all members.

Public Member Functions

void update ()
 Update the camera target.
Set/Get methods
void set_target (ENTITY *inEnt, const unit x=0, const unit y=0, const unit z=0)
 Set the camera target to an entity.
const CVector3Dpos () const
 
Returns:
The current position of the target.

const CAngle3Dang () const
 
Returns:
The current rotation of the target.

ENTITY * pEnt () const
 
Returns:
A pointer to the current target ENTITY.


Detailed Description

Camera Target class.
Stores the position, angle, and entity pointer used as the target for all cameras.

(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.

Author:
Doug Poston
Version:
1.3
Date:
12/28/2007

Member Function Documentation

void CCameraTarget::update (  ) 

Update the camera target.

Note:
Call once per frame.

void CCameraTarget::set_target ( ENTITY *  inEnt,
const unit  x = 0,
const unit  y = 0,
const unit  z = 0 
)

Set the camera target to an entity.

Parameters:
inEnt A pointer to a valid ENTITY
x Units in the X to offset the camera
y Units in the Y to offset the camera
z Units in the Z to offset the camera
See also:
set_target(CVector3D& vec)


The documentation for this class was generated from the following files:
Generated on Fri Dec 28 12:55:07 2007 for template7 by  doxygen 1.5.4