Tabnine Logo
ManifoldPoint
Code IndexAdd Tabnine to your IDE (free)

How to use
ManifoldPoint
in
org.jbox2d.collision

Best Java code snippets using org.jbox2d.collision.ManifoldPoint (Showing top 15 results out of 315)

origin: libgdx/libgdx

/**
 * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints.
 */
public Manifold() {
 points = new ManifoldPoint[Settings.maxManifoldPoints];
 for (int i = 0; i < Settings.maxManifoldPoints; i++) {
  points[i] = new ManifoldPoint();
 }
 localNormal = new Vec2();
 localPoint = new Vec2();
 pointCount = 0;
}
origin: libgdx/libgdx

 /**
  * copies this manifold from the given one
  * 
  * @param cp manifold to copy from
  */
 public void set(Manifold cp) {
  for (int i = 0; i < cp.pointCount; i++) {
   points[i].set(cp.points[i]);
  }

  type = cp.type;
  localNormal.set(cp.localNormal);
  localPoint.set(cp.localPoint);
  pointCount = cp.pointCount;
 }
}
origin: libgdx/libgdx

/**
 * Creates this manifold as a copy of the other
 * 
 * @param other
 */
public Manifold(Manifold other) {
 points = new ManifoldPoint[Settings.maxManifoldPoints];
 localNormal = other.localNormal.clone();
 localPoint = other.localPoint.clone();
 pointCount = other.pointCount;
 type = other.type;
 // djm: this is correct now
 for (int i = 0; i < Settings.maxManifoldPoints; i++) {
  points[i] = new ManifoldPoint(other.points[i]);
 }
}
origin: jbox2d/jbox2d

 /**
  * copies this manifold from the given one
  * 
  * @param cp manifold to copy from
  */
 public void set(Manifold cp) {
  for (int i = 0; i < cp.pointCount; i++) {
   points[i].set(cp.points[i]);
  }

  type = cp.type;
  localNormal.set(cp.localNormal);
  localPoint.set(cp.localPoint);
  pointCount = cp.pointCount;
 }
}
origin: jbox2d/jbox2d

/**
 * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints.
 */
public Manifold() {
 points = new ManifoldPoint[Settings.maxManifoldPoints];
 for (int i = 0; i < Settings.maxManifoldPoints; i++) {
  points[i] = new ManifoldPoint();
 }
 localNormal = new Vec2();
 localPoint = new Vec2();
 pointCount = 0;
}
origin: com.github.almasb/fxgl-physics

  /**
   * copies this manifold from the given one
   *
   * @param cp manifold to copy from
   */
  public void set(Manifold cp) {
    for (int i = 0; i < cp.pointCount; i++) {
      points[i].set(cp.points[i]);
    }

    type = cp.type;
    localNormal.set(cp.localNormal);
    localPoint.set(cp.localPoint);
    pointCount = cp.pointCount;
  }
}
origin: jbox2d/jbox2d

/**
 * Creates this manifold as a copy of the other
 * 
 * @param other
 */
public Manifold(Manifold other) {
 points = new ManifoldPoint[Settings.maxManifoldPoints];
 localNormal = other.localNormal.clone();
 localPoint = other.localPoint.clone();
 pointCount = other.pointCount;
 type = other.type;
 // djm: this is correct now
 for (int i = 0; i < Settings.maxManifoldPoints; i++) {
  points[i] = new ManifoldPoint(other.points[i]);
 }
}
origin: org.jbox2d/jbox2d-library

 /**
  * copies this manifold from the given one
  * 
  * @param cp manifold to copy from
  */
 public void set(Manifold cp) {
  for (int i = 0; i < cp.pointCount; i++) {
   points[i].set(cp.points[i]);
  }

  type = cp.type;
  localNormal.set(cp.localNormal);
  localPoint.set(cp.localPoint);
  pointCount = cp.pointCount;
 }
}
origin: com.github.almasb/fxgl-physics

/**
 * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints.
 */
public Manifold() {
  points = new ManifoldPoint[JBoxSettings.maxManifoldPoints];
  for (int i = 0; i < JBoxSettings.maxManifoldPoints; i++) {
    points[i] = new ManifoldPoint();
  }
  localNormal = new Vec2();
  localPoint = new Vec2();
  pointCount = 0;
}
origin: andmizi/MobikeTags

 /**
  * copies this manifold from the given one
  * 
  * @param cp manifold to copy from
  */
 public void set(Manifold cp) {
  for (int i = 0; i < cp.pointCount; i++) {
   points[i].set(cp.points[i]);
  }

  type = cp.type;
  localNormal.set(cp.localNormal);
  localPoint.set(cp.localPoint);
  pointCount = cp.pointCount;
 }
}
origin: andmizi/MobikeTags

/**
 * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints.
 */
public Manifold() {
 points = new ManifoldPoint[Settings.maxManifoldPoints];
 for (int i = 0; i < Settings.maxManifoldPoints; i++) {
  points[i] = new ManifoldPoint();
 }
 localNormal = new Vec2();
 localPoint = new Vec2();
 pointCount = 0;
}
origin: org.jbox2d/jbox2d-library

/**
 * creates a manifold with 0 points, with it's points array full of instantiated ManifoldPoints.
 */
public Manifold() {
 points = new ManifoldPoint[Settings.maxManifoldPoints];
 for (int i = 0; i < Settings.maxManifoldPoints; i++) {
  points[i] = new ManifoldPoint();
 }
 localNormal = new Vec2();
 localPoint = new Vec2();
 pointCount = 0;
}
origin: com.github.almasb/fxgl-physics

/**
 * Creates this manifold as a copy of the other
 *
 * @param other
 */
public Manifold(Manifold other) {
  points = new ManifoldPoint[JBoxSettings.maxManifoldPoints];
  localNormal = other.localNormal.clone();
  localPoint = other.localPoint.clone();
  pointCount = other.pointCount;
  type = other.type;
  // djm: this is correct now
  for (int i = 0; i < JBoxSettings.maxManifoldPoints; i++) {
    points[i] = new ManifoldPoint(other.points[i]);
  }
}
origin: org.jbox2d/jbox2d-library

/**
 * Creates this manifold as a copy of the other
 * 
 * @param other
 */
public Manifold(Manifold other) {
 points = new ManifoldPoint[Settings.maxManifoldPoints];
 localNormal = other.localNormal.clone();
 localPoint = other.localPoint.clone();
 pointCount = other.pointCount;
 type = other.type;
 // djm: this is correct now
 for (int i = 0; i < Settings.maxManifoldPoints; i++) {
  points[i] = new ManifoldPoint(other.points[i]);
 }
}
origin: andmizi/MobikeTags

/**
 * Creates this manifold as a copy of the other
 * 
 * @param other
 */
public Manifold(Manifold other) {
 points = new ManifoldPoint[Settings.maxManifoldPoints];
 localNormal = other.localNormal.clone();
 localPoint = other.localPoint.clone();
 pointCount = other.pointCount;
 type = other.type;
 // djm: this is correct now
 for (int i = 0; i < Settings.maxManifoldPoints; i++) {
  points[i] = new ManifoldPoint(other.points[i]);
 }
}
org.jbox2d.collisionManifoldPoint

Javadoc

A manifold point is a contact point belonging to a contact manifold. It holds details related to the geometry and dynamics of the contact points. The local point usage depends on the manifold type:
  • e_circles: the local center of circleB
  • e_faceA: the local center of cirlceB or the clip point of polygonB
  • e_faceB: the clip point of polygonA
This structure is stored across time steps, so we keep it small.
Note: the impulses are used for internal caching and may not provide reliable contact forces, especially for high speed collisions.

Most used methods

  • <init>
    Creates a manifold point as a copy of the given point
  • set
    Sets this manifold point form the given one

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • Menu (java.awt)
  • Path (java.nio.file)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Collectors (java.util.stream)
  • Runner (org.openjdk.jmh.runner)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now