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

net.mostlyoriginal.api.component.physics.Clamped Maven / Gradle / Ivy

The newest version!
package net.mostlyoriginal.api.component.physics;

import com.artemis.Component;

import java.io.Serializable;

/**
 * Clamp entity to rectangle.
 * 
 * @author Daan van Yperen
 * @see net.mostlyoriginal.api.system.physics.ClampedSystem
 */
public class Clamped extends Component implements Serializable {
    
    public float minx;
    public float miny;
    public float maxx;
    public float maxy;

    public Clamped(float minx, float miny, float maxx, float maxy) {
        this.minx = minx;
        this.miny = miny;
        this.maxx = maxx;
        this.maxy = maxy;
    }

    public Clamped() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy