- change funny exception in ConeCollisionShape to an existing one

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10010 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2012-11-26 21:54:44 +00:00
parent 1a4b918451
commit d3438942a0

View File

@ -71,7 +71,7 @@ public class ConeCollisionShape extends CollisionShape {
this.height = height;
this.axis = axis;
if (axis < PhysicsSpace.AXIS_X || axis > PhysicsSpace.AXIS_Z) {
throw new InvalidArgumentException("axis must be one of the PhysicsSpace.AXIS_* constants!");
throw new UnsupportedOperationException("axis must be one of the PhysicsSpace.AXIS_* constants!");
}
createShape();
}