Blender V2.61 - r43446
|
This is an abstract interface class to the Scene Graph library. It allows you to specify how child nodes react to parent nodes. Normally a child will use it's parent's transforms to compute it's own global transforms. How this is performed depends on the type of relation. For example if the parent is a vertex parent to this child then the child should not inherit any rotation information from the parent. Or if the parent is a 'slow parent' to this child then the child should react slowly to changes in the parent's position. The exact relation is left for you to implement by filling out this interface with concrete examples.
There is exactly one SG_ParentRelation per SG_Node. Subclasses should not be value types and should be allocated on the heap.