us.ihmc.simulationconstructionset.physics.collision.CollisionDetectionResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simulation-construction-set
Show all versions of simulation-construction-set
Simulation Construction Set
package us.ihmc.simulationconstructionset.physics.collision;
import java.util.ArrayList;
import us.ihmc.simulationconstructionset.physics.Contacts;
public class CollisionDetectionResult
{
private final ArrayList results = new ArrayList<>();
public int getNumberOfCollisions()
{
return results.size();
}
public void clear()
{
results.clear();
}
public Contacts getCollision(int i)
{
return results.get(i);
}
public void addContact(Contacts contacts)
{
results.add(contacts);
}
}