- change funny exception in ConeCollisionShape to an existing one

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10010 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 1a4b918451
commit d3438942a0
  1. 2
      engine/src/jbullet/com/jme3/bullet/collision/shapes/ConeCollisionShape.java

@ -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();
}

Loading…
Cancel
Save