# D:/CHAI3D/build-2-0-0/2.0.0/win32/src/effects/CGenericEffect.h File Reference

Haptic Effects
Base Class. More...

`#include "extras/CGlobals.h"`
`#include "math/CVector3d.h"`

Go to the source code of this file.

## Classes
class | cGenericEffect
| cGenericEffect provides a base class to program haptic effects (force models) when a virtual tool interacts with objects of a virtual environment. More...
## Variables
const int | CHAI_EFFECT_MAX_IDN = 16

## Detailed Description

Haptic Effects
Base Class.

## Variable Documentation

const int CHAI_EFFECT_MAX_IDN = 16

Maximum number of force models supported the CHAI simulation. Some force effects require a history of the tool, such as its previous position for instance. Effects which need such information store it in a local table and retrieve the information when they calculate the reaction force. See CEffectStickSlip class as an example

CHAI3D 2.0.0 documentation
Please address any questions to support@chai3d.org
(C) 2003-2009 - CHAI 3D
All Rights Reserved.