Transforms, Nodes and Links
Moved from Vizard 4 forums to 5 since this my questions have gravitated toward the new <node3d>.getTransform().
I have a hierarchical object that I have grabbed a transform from, in this case a shelf. I use the transform to move the shelf in and out using vizact.
I have a series of containers I want to place on the shelf, my prior instincts would have me parent the objects to the shelf so they move when the shelf comes out. However, the link object returned by getTransform does not support this.
How do I go about linking these objects in a smart (easy) way?
For instance, I also want to be able to offset the objects from one another (tradiditonally using <node3d>.setPosition).
But if I use viz.link( shelf, container1) I have to apply the offset to the link using <link>.offset(), meaning I now need to store these links for retrieval later if I choose to break it.
Is there a better way to do this in Vizard 5 that I am missing? Some way to insert an object under the link returned by getTransform?
|