@@ -42,7 +42,7 @@ public enum ContainerType { Box, Cylinder };
4242 public float contactOffset = .001f ;
4343
4444 [ Header ( "Shaking Parameters" ) ]
45- public bool shakeTransversly = false ;
45+ public bool shakeTransversely = false ;
4646 public bool shakeRotationaly = false ;
4747 public bool stabilizeCamera = false ;
4848 public float ShakingFraction = .002f ;
@@ -125,9 +125,7 @@ void Start () {
125125 if ( modifyScaleAutomatically == true )
126126 {
127127 float grainVolume = rock . GetVolume ( ) * rock . grainCountGoal ;
128- Debug . Log ( grainVolume ) ;
129128 ContainerScale = ContainerPrefab . GetComponent < ContainerOperations > ( ) . GetScaleFromVolume ( grainVolume , estimatedPorosity ) ;
130- Debug . Log ( ContainerScale ) ;
131129 ContainerPrefab . GetComponent < ContainerOperations > ( ) . setContainerScale ( ContainerScale ) ;
132130 }
133131
@@ -214,7 +212,7 @@ void Update () {
214212 if ( Input . GetKeyDown ( KeyCode . H ) ) { ShakingFraction -= .0001f ; }
215213 if ( Input . GetKeyDown ( KeyCode . N ) ) { ShakingRotationFraction += .0001f ; }
216214 if ( Input . GetKeyDown ( KeyCode . B ) ) { ShakingRotationFraction -= .0001f ; }
217- if ( Input . GetKeyUp ( KeyCode . K ) ) { shakeTransversly = ! shakeTransversly ; }
215+ if ( Input . GetKeyUp ( KeyCode . K ) ) { shakeTransversely = ! shakeTransversely ; }
218216 if ( Input . GetKeyUp ( KeyCode . M ) ) { shakeRotationaly = ! shakeRotationaly ; }
219217
220218 if ( Input . GetKeyUp ( KeyCode . R ) ) { automaticDepostion = ! automaticDepostion ; }
@@ -242,7 +240,7 @@ void Update () {
242240 if ( Input . GetKeyDown ( KeyCode . F1 ) ) { Application . Quit ( ) ; }
243241
244242 // Shaker
245- shaker . shakeBox ( shakeTransversly , shakeRotationaly , ShakingFraction , ShakingRotationFraction ) ;
243+ shaker . shakeBox ( shakeTransversely , shakeRotationaly , ShakingFraction , ShakingRotationFraction ) ;
246244 OnValidate ( ) ;
247245
248246 }
@@ -386,17 +384,17 @@ public void LoadConfigurationFile()
386384 SolverIterationCount = configFile . getInteger ( "Solver Iteration Count" ) ;
387385 velocitySolverIterationCount = configFile . getInteger ( "Velocity Solver Iteration Count" ) ;
388386 SleepThreshold = configFile . getFloat ( "Sleep Threshold" ) ;
389- BounceThreshold = configFile . getFloat ( "Bounce Threashold " ) ;
387+ BounceThreshold = configFile . getFloat ( "Bounce Threshold " ) ;
390388 TimeScale = configFile . getFloat ( "Time Scale" ) ;
391389 TargetFrameRate = configFile . getInteger ( "Target Frame Rate" ) ;
392390 contactOffset = configFile . getFloat ( "Contact Offset" ) ;
393391
394392 // Shaking
395- shakeTransversly = configFile . getBoolean ( "Shake Transversly " ) ;
393+ shakeTransversely = configFile . getBoolean ( "Shake Transversely " ) ;
396394 shakeRotationaly = configFile . getBoolean ( "Shake Rotationally" ) ;
397395 stabilizeCamera = configFile . getBoolean ( "Stabilize Camera" ) ;
398- ShakingFraction = configFile . getFloat ( "Shaking Fracton " ) ;
399- ShakingRotationFraction = configFile . getFloat ( "Shaking Roation Fraction" ) ;
396+ ShakingFraction = configFile . getFloat ( "Shaking Fraction " ) ;
397+ ShakingRotationFraction = configFile . getFloat ( "Shaking Rotation Fraction" ) ;
400398
401399 // Folder
402400 projectFolderPath = configFile . getString ( "Project Folder Path" ) ;
@@ -501,19 +499,19 @@ public void SaveConfigurationFile()
501499 rawData . AppendLine ( "Solver Iteration Count" + " = " + SolverIterationCount ) ;
502500 rawData . AppendLine ( "Velocity Solver Iteration Count" + " = " + velocitySolverIterationCount ) ;
503501 rawData . AppendLine ( "Sleep Threshold" + " = " + SleepThreshold ) ;
504- rawData . AppendLine ( "Bounce Threashold " + " = " + BounceThreshold ) ;
502+ rawData . AppendLine ( "Bounce Threshold " + " = " + BounceThreshold ) ;
505503 rawData . AppendLine ( "Time Scale" + " = " + TimeScale ) ;
506504 rawData . AppendLine ( "Target Frame Rate" + " = " + TargetFrameRate ) ;
507505 rawData . AppendLine ( "Contact Offset" + " = " + contactOffset ) ;
508506 rawData . AppendLine ( "-----------------------------------------------" ) ;
509507
510508 // Shaking Parameters
511509 rawData . AppendLine ( "- Shaking Parameters" ) ;
512- rawData . AppendLine ( "Shake Transversly " + " = " + shakeTransversly . ToString ( ) ) ;
510+ rawData . AppendLine ( "Shake Transversely " + " = " + shakeTransversely . ToString ( ) ) ;
513511 rawData . AppendLine ( "Shake Rotationally" + " = " + shakeRotationaly . ToString ( ) ) ;
514512 rawData . AppendLine ( "Stabilize Camera" + " = " + stabilizeCamera . ToString ( ) ) ;
515- rawData . AppendLine ( "Shaking Fracton " + " = " + ShakingFraction ) ;
516- rawData . AppendLine ( "Shaking Roation Fraction" + " = " + ShakingRotationFraction ) ;
513+ rawData . AppendLine ( "Shaking Fraction " + " = " + ShakingFraction ) ;
514+ rawData . AppendLine ( "Shaking Rotation Fraction" + " = " + ShakingRotationFraction ) ;
517515 rawData . AppendLine ( "-----------------------------------------------" ) ;
518516
519517 // Folder Parameters
0 commit comments