You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
472 B
28 lines
472 B
package net.sector.collision;
|
|
|
|
|
|
import com.porcupine.coord.Coord;
|
|
|
|
|
|
/**
|
|
* Sphere collider, never colliding
|
|
*
|
|
* @author Ondřej Hruška (MightyPork)
|
|
*/
|
|
public class ColliderSphereFake extends ColliderSphere {
|
|
|
|
/**
|
|
* Sphere collider
|
|
*
|
|
* @param center center
|
|
* @param radius sphere radius
|
|
*/
|
|
public ColliderSphereFake(Coord center, double radius) {
|
|
super(center, radius);
|
|
}
|
|
|
|
@Override
|
|
public boolean collidesWith(Collider other) {
|
|
return false;
|
|
}
|
|
}
|
|
|