Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Aviary.cpp File Reference

implementation of the Aviary class. More...

#include "Aviary.h"
#include "serverinterfaces.h"

Defines

#define CIRCLETIME   3.0f
 Default timeout for circling behaviour. More...


Functions

 for (iter=m_boids.begin();iter!=m_boids.end();iter++)
 if (fScratch >m_maxForce)
 if (m_bCircleDirection)
pBoid SetScratch (pBoid->GetScratch()-fFrameTime)
 if (pBoid->GetScratch()< 0)
g_pLTSPhysics SetVelocity (hObject,&vVelocity)
g_pLTSPhysics SetPosition (hObject,&vPosition)
g_pLTSPhysics SetRotation (hObject,&oRotation)

Variables

vector< CBoidModel * >::iterator iter
 fScratch = steeringForce.Mag()
 break
case Circle
case Peck
 newUp = steeringForce+LTVector3f(0.0f,m_weight,0.0f)
 vVelocity = steeringForce*fFrameTime
 oRotation = LTOrientation(vVelocity,newUp)


Detailed Description

implementation of the Aviary class.

Author:
Elan Ruskin , Jon Parise

Define Documentation

#define CIRCLETIME   3.0f
 

Default timeout for circling behaviour.


Function Documentation

for iter    = m_boids.begin();iter != m_boids.end();iter++
 

if pBoid-   
 

if m_bCircleDirection   
 

if fScratch   ,
m_maxForce   
 

g_pLTSPhysics SetPosition hObject   ,
  vPosition
 

g_pLTSPhysics SetRotation hObject   ,
  oRotation
 

pBoid SetScratch pBoid-   ,
GetScratch()-    fFrameTime
 

g_pLTSPhysics SetVelocity hObject   ,
  vVelocity
 


Variable Documentation

break
 

case Circle
 

fScratch = steeringForce.Mag()
 

vector<CBoidModel *>::iterator iter
 

newUp = steeringForce+LTVector3f(0.0f,m_weight,0.0f)
 

oRotation = LTOrientation(vVelocity,newUp)
 

case Peck
 

vVelocity = steeringForce*fFrameTime
 


Generated on Mon Mar 4 08:42:23 2002 for Aria by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002