My Project
Public Member Functions | Public Attributes | Protected Attributes | List of all members
ParaEngine::CAutoCamera::CameraConstraint Struct Reference

Public Member Functions

void SetConstraintType (CameraConstraintEnum typeC)
 
CameraConstraintEnum GetConstraintType ()
 
void ConstrainToBoundary (Vector3 *pV, const Vector3 *pvMin, const Vector3 *pvMax)
 Desc: Clamps pV to lie inside vMinBoundary & MaxBoundary.
 
void ConstrainToOuterBoundary (Vector3 *pV, const Vector3 *pvMin, const Vector3 *pvMax)
 Desc: Clamps pV to lie outside vMinBoundary & MaxBoundary.
 
void UpdateFocusConstraint (const Vector3 *pV, FLOAT fLookAtRadius, FLOAT fLookAtMinHeight, FLOAT fLookAtMaxHeight, FLOAT fEyeRadius, FLOAT fEyeMinHeight, FLOAT fEyeMaxHeight)
 Name: UpdateFocusConstraint Desc: Set internal constraint based on the parameters param: pV is the object point that the camera focus. More...
 
void BoundToFocusConstraint (Vector3 *pEye, Vector3 *pLookAt)
 

Public Attributes

Vector3 m_vMinLookAt
 the box within which the camera lookat point must be
 
Vector3 m_vMaxLookAt
 
Vector3 m_vMinEye
 the box within which the camera eyeat point must be
 
Vector3 m_vMaxEye
 

Protected Attributes

CameraConstraintEnum m_typeConstraint
 

Member Function Documentation

§ UpdateFocusConstraint()

void CAutoCamera::CameraConstraint::UpdateFocusConstraint ( const Vector3 pV,
FLOAT  fLookAtRadius,
FLOAT  fLookAtMinHeight,
FLOAT  fLookAtMaxHeight,
FLOAT  fEyeRadius,
FLOAT  fEyeMinHeight,
FLOAT  fEyeMaxHeight 
)

Name: UpdateFocusConstraint Desc: Set internal constraint based on the parameters param: pV is the object point that the camera focus.

fLookAtRadius is the Loot at radius fEyeRadius is the Eye radius Note: Radius is half of the side length of the cubic within which camera must be; and both box must be above y=0 plane.


The documentation for this struct was generated from the following files: