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

org.jbox2d.particle.ParticleContact Maven / Gradle / Ivy

The newest version!
package org.jbox2d.particle;

import com.almasb.fxgl.core.math.Vec2;

public class ParticleContact {
    /**
     * Indices of the respective particles making contact.
     */
    public int indexA, indexB;
    /**
     * The logical sum of the particle behaviors that have been set.
     */
    public int flags;
    /**
     * Weight of the contact. A value between 0.0f and 1.0f.
     */
    public float weight;
    /**
     * The normalized direction from A to B.
     */
    public final Vec2 normal = new Vec2();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy