Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
H3D.org Feeds
H3D.org Forum Index
   Programming Issues
     touch callback
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
_mrbloom
Posted on: 2012/6/7 15:33
Not too shy to talk
Joined: 2012/6/7
From:
Posts: 12
touch callback
Hello everybody,
I am using a Falcon Haptic device with the HAPI library.
I would like to play a sound when the haptic proxy touches a shape. Is there a way to do that ?
A system like in the Sensable PHANTOM API, where you can install a touch callback which gets called each time a shape is touched, would be perfect but it doesn't seem to be supported. Any way to know when the proxy is touching an object would do.

Any idea ?

thanks
MB
daniel
Posted on: 2012/6/19 13:10
Webmaster
Joined: 2004/11/28
From:
Posts: 536
Re: touch callback
You can use the isTouched field on any X3DGeometryNode( such as Box, Sphere, IndexedTriangleSet, etc) to get information on if it is touched or not.

The Sound node can be used to play sounds (see examples/All/Sound.x3d)
Threaded | Newest First Previous Topic | Next Topic | Top

Register To Post
 



(C) 2012 SenseGraphics AB    ---    Powered by XOOPS