public class CollisionConstraint extends Object
CollisionConstraintConfig
Constructor and Description |
---|
CollisionConstraint()
Create a collision constraint.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Orientation orientation,
String group)
Add the group constraint at the specified orientation.
|
Map<Orientation,Collection<String>> |
getConstraints()
Get the constraints defined.
|
Collection<String> |
getConstraints(Orientation orientation)
Get the constraints defined for the specified orientation.
|
boolean |
has(Orientation orientation,
String group)
Check if constraint is defined for the group at the specified orientation.
|
public void add(Orientation orientation, String group)
orientation
- The orientation.group
- The group where constraint is applied.public Map<Orientation,Collection<String>> getConstraints()
public Collection<String> getConstraints(Orientation orientation)
orientation
- The orientation value.public boolean has(Orientation orientation, String group)
orientation
- The orientation to check on.group
- The group to check.true
if constraint defined, false
else.Copyright © 2016 Byron 3D Games Studio. All rights reserved.