All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.simulationconstructionset.physics.collision.CollisionDetectionResult Maven / Gradle / Ivy

There is a newer version: 0.25.2
Show newest version
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);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy