Browse Source

fix typo, constructor defaults

Garrett Johnson 4 years ago
parent
commit
68a55be2a2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/jsm/geometries/RoundedBoxBufferGeometry.js

+ 2 - 2
examples/jsm/geometries/RoundedBoxBufferGeometry.js

@@ -39,14 +39,14 @@ function getUv( faceDirVector, normal, uvAxis, projectionAxis, radius, sideLengt
 
 class RoundedBoxBufferGeometry extends BoxBufferGeometry {
 
-	constructor( width = 1, height = 1, depth = 1, segments = 1, radius = 1 ) {
+	constructor( width = 1, height = 1, depth = 1, segments = 4, radius = 0.1 ) {
 
 		// ensure segments is odd so we have a plane connecting the rounded corners
 		segments = segments % 2 === 0 ? segments + 1 : segments;
 
 		super( 1, 1, 1, segments, segments, segments );
 
-		// if we just have one segment we'r the same as a regular box
+		// if we just have one segment we're the same as a regular box
 		if ( segments === 1 ) {
 
 			return;