Hi,
I am creating a scene in which there will be two geometries connected by a
tube. The geometries can move around in between frames, so the tube must also
move and resize. The way I am trying to do this is to have a geometry for a
tube of unit length and diameter. Then, if the position of either endpoint
changes, I recalculate the midpoint and use a translation matrix to move the
tube there, and give it the correct scaling and rotation to connect the two
endpoint geometries.
The graph would look something like this:
Root
/ | \
Matrix Matrix Matrix
\ / \
Geode Geode (Tube Geometry)
(Endpoint Geometry)
Is this the most efficient way to do this? Is there some way I could tie in to
the two MatrixTransforms for the endpoints to automatically update the tube's
location?
...
Thank you!
Cheers,
Michael
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48165#48165
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org