modify this.parameters.height to 'length' cuz it uses data.length in fromJSON(). this problem happens when you try pass a capsule's parameters to create another capsule using fromJSON()
@@ -15,7 +15,7 @@ class CapsuleGeometry extends LatheGeometry {
this.parameters = {
radius: radius,
- height: length,
+ length: length,
capSegments: capSegments,
radialSegments: radialSegments,
};