net.mostlyoriginal.api.component.physics.Clamped Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contrib-jam Show documentation
Show all versions of contrib-jam Show documentation
Jam bundle of systems and components!
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