@@ -63,6 +63,7 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
63
63
import com .jme3 .bullet .collision .shapes .PlaneCollisionShape ;
64
64
import com .jme3 .bullet .collision .shapes .SimplexCollisionShape ;
65
65
import com .jme3 .bullet .collision .shapes .SphereCollisionShape ;
66
+ import com .jme3 .bullet .collision .shapes .SphericalSegment ;
66
67
import com .jme3 .bullet .collision .shapes .infos .BoundingValueHierarchy ;
67
68
import com .jme3 .bullet .collision .shapes .infos .IndexedMesh ;
68
69
import com .jme3 .bullet .joints .New6Dof ;
@@ -657,6 +658,20 @@ public void test003b() {
657
658
buf = DebugShapeFactory .getDebugTriangles (
658
659
sphere , DebugShapeFactory .lowResolution );
659
660
Assert .assertEquals (720 , buf .capacity ());
661
+
662
+ // SphericalSegment
663
+ SphericalSegment segment = new SphericalSegment (1f );
664
+ verifyCollisionShapeDefaults (segment );
665
+ Assert .assertEquals (0.04f , segment .getMargin (), 0f );
666
+ Assert .assertEquals (19 , segment .getShapeType ());
667
+ Assert .assertFalse (segment .isConcave ());
668
+ Assert .assertTrue (segment .isConvex ());
669
+ Assert .assertFalse (segment .isInfinite ());
670
+ Assert .assertFalse (segment .isNonMoving ());
671
+ Assert .assertFalse (segment .isPolyhedral ());
672
+ buf = DebugShapeFactory .getDebugTriangles (
673
+ sphere , DebugShapeFactory .lowResolution );
674
+ Assert .assertEquals (720 , buf .capacity ());
660
675
}
661
676
662
677
/**
0 commit comments