doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
idAFConstraint_PyramidLimit Class Reference

#include <Physics_AF.h>

Inheritance diagram for idAFConstraint_PyramidLimit:
idAFConstraint

Public Member Functions

 idAFConstraint_PyramidLimit (void)
 
void Setup (idAFBody *b1, idAFBody *b2, const idVec3 &pyramidAnchor, const idVec3 &pyramidAxis, const idVec3 &baseAxis, const float pyramidAngle1, const float pyramidAngle2, const idVec3 &body1Axis)
 
void SetAnchor (const idVec3 &pyramidAxis)
 
void SetBody1Axis (const idVec3 &body1Axis)
 
void SetEpsilon (const float e)
 
bool Add (idPhysics_AF *phys, float invTimeStep)
 
virtual void DebugDraw (void)
 
virtual void Translate (const idVec3 &translation)
 
virtual void Rotate (const idRotation &rotation)
 
virtual void Save (idSaveGame *saveFile) const
 
virtual void Restore (idRestoreGame *saveFile)
 
- Public Member Functions inherited from idAFConstraint
 idAFConstraint (void)
 
virtual ~idAFConstraint (void)
 
constraintType_t GetType (void) const
 
const idStrGetName (void) const
 
idAFBodyGetBody1 (void) const
 
idAFBodyGetBody2 (void) const
 
void SetPhysics (idPhysics_AF *p)
 
const idVecXGetMultiplier (void)
 
virtual void SetBody1 (idAFBody *body)
 
virtual void SetBody2 (idAFBody *body)
 
virtual void GetForce (idAFBody *body, idVec6 &force)
 
virtual void GetCenter (idVec3 &center)
 

Protected Member Functions

virtual void Evaluate (float invTimeStep)
 
virtual void ApplyFriction (float invTimeStep)
 
- Protected Member Functions inherited from idAFConstraint
void InitSize (int size)
 

Protected Attributes

idVec3 pyramidAnchor
 
idMat3 pyramidBasis
 
idVec3 body1Axis
 
float cosAngle [2]
 
float sinHalfAngle [2]
 
float cosHalfAngle [2]
 
float epsilon
 
- Protected Attributes inherited from idAFConstraint
constraintType_t type
 
idStr name
 
idAFBodybody1
 
idAFBodybody2
 
idPhysics_AFphysics
 
idMatX J1
 
idMatX J2
 
idVecX c1
 
idVecX c2
 
idVecX lo
 
idVecX hi
 
idVecX e
 
idAFConstraintboxConstraint
 
int boxIndex [6]
 
idMatX invI
 
idMatX J
 
idVecX s
 
idVecX lm
 
int firstIndex
 
struct
idAFConstraint::constraintFlags_s 
fl
 

Detailed Description

Definition at line 569 of file Physics_AF.h.

Constructor & Destructor Documentation

idAFConstraint_PyramidLimit::idAFConstraint_PyramidLimit ( void  )

Definition at line 3599 of file Physics_AF.cpp.

Member Function Documentation

bool idAFConstraint_PyramidLimit::Add ( idPhysics_AF phys,
float  invTimeStep 
)

Definition at line 3677 of file Physics_AF.cpp.

void idAFConstraint_PyramidLimit::ApplyFriction ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 3669 of file Physics_AF.cpp.

void idAFConstraint_PyramidLimit::DebugDraw ( void  )
virtual

Reimplemented from idAFConstraint.

Definition at line 3792 of file Physics_AF.cpp.

void idAFConstraint_PyramidLimit::Evaluate ( float  invTimeStep)
protectedvirtual

Reimplemented from idAFConstraint.

Definition at line 3660 of file Physics_AF.cpp.

void idAFConstraint_PyramidLimit::Restore ( idRestoreGame saveFile)
virtual

Reimplemented from idAFConstraint.

Definition at line 3861 of file Physics_AF.cpp.

void idAFConstraint_PyramidLimit::Rotate ( const idRotation rotation)
virtual

Reimplemented from idAFConstraint.

Definition at line 3778 of file Physics_AF.cpp.

void idAFConstraint_PyramidLimit::Save ( idSaveGame saveFile) const
virtual

Reimplemented from idAFConstraint.

Definition at line 3842 of file Physics_AF.cpp.

void idAFConstraint_PyramidLimit::SetAnchor ( const idVec3 pyramidAxis)

Definition at line 3642 of file Physics_AF.cpp.

void idAFConstraint_PyramidLimit::SetBody1Axis ( const idVec3 body1Axis)

Definition at line 3651 of file Physics_AF.cpp.

void idAFConstraint_PyramidLimit::SetEpsilon ( const float  e)
inline

Definition at line 578 of file Physics_AF.h.

void idAFConstraint_PyramidLimit::Setup ( idAFBody b1,
idAFBody b2,
const idVec3 pyramidAnchor,
const idVec3 pyramidAxis,
const idVec3 baseAxis,
const float  pyramidAngle1,
const float  pyramidAngle2,
const idVec3 body1Axis 
)

Definition at line 3612 of file Physics_AF.cpp.

void idAFConstraint_PyramidLimit::Translate ( const idVec3 translation)
virtual

Reimplemented from idAFConstraint.

Definition at line 3767 of file Physics_AF.cpp.

Member Data Documentation

idVec3 idAFConstraint_PyramidLimit::body1Axis
protected

Definition at line 589 of file Physics_AF.h.

float idAFConstraint_PyramidLimit::cosAngle[2]
protected

Definition at line 590 of file Physics_AF.h.

float idAFConstraint_PyramidLimit::cosHalfAngle[2]
protected

Definition at line 592 of file Physics_AF.h.

float idAFConstraint_PyramidLimit::epsilon
protected

Definition at line 593 of file Physics_AF.h.

idVec3 idAFConstraint_PyramidLimit::pyramidAnchor
protected

Definition at line 587 of file Physics_AF.h.

idMat3 idAFConstraint_PyramidLimit::pyramidBasis
protected

Definition at line 588 of file Physics_AF.h.

float idAFConstraint_PyramidLimit::sinHalfAngle[2]
protected

Definition at line 591 of file Physics_AF.h.


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