- 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:
parent
1a4b918451
commit
d3438942a0
@ -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…
x
Reference in New Issue
Block a user