com.jmex.physics
Class PhysicsNodeMerger

java.lang.Object
  extended by com.jmex.physics.PhysicsNodeMerger

public class PhysicsNodeMerger
extends java.lang.Object

Helper class to provide physics node merging interface

Author:
jspohr

Constructor Summary
PhysicsNodeMerger()
           
 
Method Summary
static void mergePhysicsNodes(PhysicsNode target, PhysicsNode source)
          Merges the set of children of a physics node into another's.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhysicsNodeMerger

public PhysicsNodeMerger()
Method Detail

mergePhysicsNodes

public static void mergePhysicsNodes(PhysicsNode target,
                                     PhysicsNode source)
Merges the set of children of a physics node into another's. The source node will have its children removed.

Parameters:
target - PhysicsNode which receives all children of the source.
source - PhysicsNode whose children are moved to the target.