Vizard 8 » Command Index » Vizard modules » viz » <viz>.grab
8.0

<viz>.grab

Use to create a link that behaves as if the source object has grabbed the destination object

<viz>.grab(  
src  
dst  
**kw  
)  
src
Source object
dst
Destination object
**kw
Optional keyword arguments that are passed on to the viz.link function

Remarks

Creates a link that preserves the orientation and position of the destination object relative to the source object.

Return Value

A link object

Example

hand = viz.add('marker.wrl')
hand.setPosition([0,1.8,3])
grabable = viz.add('ball.wrl')
grabable.setPosition([0.5,1.8,3])
viz.grab(hand,grabable)