# H3DNetworkingUtils::RealtimeAttractor Class Reference

The RealtimeAttractor class is an Attractor that can have its "suck-to" point changed at real time (haptic) rates. More...

`#include <H3DNetworkingUtils/RealtimeAttractor.h>`

Inheritance diagram for H3DNetworkingUtils::RealtimeAttractor:

List of all members.

## Public Member Functions
| RealtimeAttractor (H3D::Inst< LockableSFVec3f > _realtimePoint=0)
| Constructor.
virtual | ~RealtimeAttractor ()
| Destructor.
## Public Attributes
auto_ptr< LockableSFVec3f > | realtimePoint
| The global point of attraction which can be updated in the haptics thread.
## Static Public Attributes
static H3D::H3DNodeDatabase | database
| X3D database.
## Classes
class | LockableSFVec3f
| An SFVec3f that has thread-locked access. More...

## Detailed Description

The RealtimeAttractor class is an Attractor that can have its "suck-to" point changed at real time (haptic) rates.

(~1000hz). Typically you would route from another haptic tool's haptic loop. Route to realtimePoint - don't use the parent class's point field. This class works with 1 or 2 haptic devices.
Examples:

- RealtimeAttractorTestServer.x3d
- RealtimeAttractorTestClient.x3d

## Member Data Documentation

auto_ptr<LockableSFVec3f> H3DNetworkingUtils::RealtimeAttractor::realtimePoint

The global point of attraction which can be updated in the haptics thread.

This serves the same purpose as theh 'point' field of the parent class but is reproduced with a different name to emphasise the issue that it is set and updated from the haptics thread at haptics rates
It should be routed to from a remoteField with isHapticField set to true access type: inputOutput
basic type: SFVec3f
default value: 0 0 0

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

- RealtimeAttractor.h
- RealtimeAttractor.cpp