ソースを参照

- change funny exception in ConeCollisionShape to an existing one

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10010 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 12 年 前
コミット
d3438942a0

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