Skip to content

Commit

Permalink
PhysicsDescriber: recognize CustomConvexShape
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 19, 2024
1 parent ff108da commit 11b3d9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/jme3utilities/minie/PhysicsDescriber.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2013-2023, Stephen Gold
Copyright (c) 2013-2024, Stephen Gold
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -37,6 +37,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
import com.jme3.bullet.collision.shapes.ConeCollisionShape;
import com.jme3.bullet.collision.shapes.Convex2dShape;
import com.jme3.bullet.collision.shapes.ConvexShape;
import com.jme3.bullet.collision.shapes.CustomConvexShape;
import com.jme3.bullet.collision.shapes.CylinderCollisionShape;
import com.jme3.bullet.collision.shapes.GImpactCollisionShape;
import com.jme3.bullet.collision.shapes.HeightfieldCollisionShape;
Expand Down Expand Up @@ -237,7 +238,7 @@ public String describe(CollisionShape shape) {
float radius = sphere.getRadius();
result.append(MyString.describe(radius));

} else {
} else if (!(shape instanceof CustomConvexShape)) {
result.append('?');
}

Expand Down

0 comments on commit 11b3d9f

Please sign in to comment.