Maven module :un.api : api-physics :
Class : un.api.physic.constraint.TranslationConstraint
Extends/Implements : un.api.physic.constraint.Constraint
Subclasses : -

Constraints a node in a given bounding box.
author  Johann Sorel


Variables : -
Functions : TranslationConstraint, getTarget, getLimits, isRelativeToParent, apply




param  target node to constraint
param  limits bounding box use to restrict the node translation
param  relativeToParent :
true if bbox is in node space
false if bbox is in world space
public void TranslationConstraint (SceneNode target, BBox limits, boolean relativeToParent)


Node on which this constraint is applied.
return  SceneNode
public SceneNode getTarget ()


Bounding box use to restrict the node translation.
return  BBox
public BBox getLimits ()


Indicate how the bbox limit must be interpreted.
return  true if bbox is in node space
false if bbox is in world space
public boolean isRelativeToParent ()

public void apply ()