#include <SpringEffect.h>
Inheritance diagram for H3D::SpringEffect:

Public Member Functions | |
| SpringEffect (Inst< SFVec3f > _position=0, Inst< SFVec3f > _force=0, Inst< SFFloat > _springConstant=0, Inst< SFFloat > _startDistance=0, Inst< SFFloat > _escapeDistance=0, Inst< SFBool > _active=0, Inst< SFInt32 > _deviceIndex=0, Inst< SFNode > _metadata=0) | |
| Constructor. | |
Public Attributes | |
| auto_ptr< SFVec3f > | position |
| The position of the spring. | |
| auto_ptr< SFVec3f > | force |
| The force applied by the spring to the haptics device since the last scenegraph update. | |
| auto_ptr< SFFloat > | springConstant |
| The spring constant of the spring. | |
| auto_ptr< SFFloat > | startDistance |
| When the haptics device comes within this distance the spring effect is activated. | |
| auto_ptr< SFFloat > | escapeDistance |
| If the effect is active, the effect will be deactivated if the haptics device moves outside this distance. | |
| auto_ptr< SFBool > | active |
| Active is true when the spring effect is active. | |
| auto_ptr< SFInt32 > | deviceIndex |
| The index of the haptics device that the effect is supposed to be rendered on. | |
| AutoRef< HapticSpring > | haptic_spring |
| Internal haptic spring instance. | |
Static Public Attributes | |
| static H3DNodeDatabase | database |
| The H3DNodeDatabase for this node. | |
the force is proportional to the the distance of the haptics device from the spring position. The effect will not start until the haptics device is within startDistance from the spring position. The effect will stop when the haptics device is further away than escapeDistance from the spring position. deviceIndex decides on which haptics device this effect should be on. The force generated will be force = (position - device_position) * springConstant
|
|
Active is true when the spring effect is active.
Access type: outputOnly |
|
|
The index of the haptics device that the effect is supposed to be rendered on.
Access type: inputOutput |
|
|
If the effect is active, the effect will be deactivated if the haptics device moves outside this distance.
Access type: inputOutput |
|
|
The force applied by the spring to the haptics device since the last scenegraph update.
Access type: outputOnly |
|
|
The position of the spring.
Access type: inputOutput |
|
|
The spring constant of the spring. force = (position - device_position) * springConstant
Access type: inputOutput |
|
|
When the haptics device comes within this distance the spring effect is activated.
Access type: inputOutput |
1.4.5