Skip to main content

Meta_HapticNode

Module: Metanodes / Definitions

A HapticNode is added to Meta_Assembly much the same way as Meta_Collision, and allows the assembly to be felt by haptic devices.

#include <meta_haptic.hpp>

Public Types

TypeName
enumIDX { Idx_Collides, Idx_Type, Idx_Enabled, Idx_Limit, Idx_Rule, Idx_Magnetic, Idx_Stiffness, Idx_Damping, Idx_Friction, Idx_Popthrough }
Property index.
enumCollisionNodeType { TYPE_TOUCH = 0, TYPE_HOTSPOT = 5 }
Values for Idx_Type.

Public Types Documentation

enum IDX

EnumeratorValueDescription
Idx_Collidesbool - Is set to true while the haptic device is actively feeling this object, and false when it moves away
Idx_TypeCollisionNodeType (int) - Type of haptic collision
Idx_Enabledbool - Enables haptics on this node
Idx_LimitInternal.
Idx_RuleInternal.
Idx_Magneticbool - When enabled, this object can cause the haptic cursor to stick to it
Idx_Stiffnessfloatw - Controls how hard the surface of the object feels
Idx_Dampingfloatw - Controls the springiness of the surface
Idx_Frictionfloatw - Controls the resistance against the haptic cursor moving along the surface
Idx_Popthroughfloatw - Controls how hard it is to push the cursor through the surface

Property index.

enum CollisionNodeType

EnumeratorValueDescription
TYPE_TOUCH0Node is touchable by the haptic device, providing force feedback (Symbols - C: "TypeTouch", Lua: __HapticNode_TypeTouch)
TYPE_HOTSPOT5Node represents a bounding sphere, activated when the haptic cursor is inside. Triggers Touch and Break events to Meta_EventHandler (Symbols - C: "TypeHotspot", Lua: __HapticNode_TypeHotspot)

Values for Idx_Type.