@@ -42,7 +42,7 @@ public enum ContainerType { Box, Cylinder };
42
42
public float contactOffset = .001f ;
43
43
44
44
[ Header ( "Shaking Parameters" ) ]
45
- public bool shakeTransversly = false ;
45
+ public bool shakeTransversely = false ;
46
46
public bool shakeRotationaly = false ;
47
47
public bool stabilizeCamera = false ;
48
48
public float ShakingFraction = .002f ;
@@ -125,9 +125,7 @@ void Start () {
125
125
if ( modifyScaleAutomatically == true )
126
126
{
127
127
float grainVolume = rock . GetVolume ( ) * rock . grainCountGoal ;
128
- Debug . Log ( grainVolume ) ;
129
128
ContainerScale = ContainerPrefab . GetComponent < ContainerOperations > ( ) . GetScaleFromVolume ( grainVolume , estimatedPorosity ) ;
130
- Debug . Log ( ContainerScale ) ;
131
129
ContainerPrefab . GetComponent < ContainerOperations > ( ) . setContainerScale ( ContainerScale ) ;
132
130
}
133
131
@@ -214,7 +212,7 @@ void Update () {
214
212
if ( Input . GetKeyDown ( KeyCode . H ) ) { ShakingFraction -= .0001f ; }
215
213
if ( Input . GetKeyDown ( KeyCode . N ) ) { ShakingRotationFraction += .0001f ; }
216
214
if ( Input . GetKeyDown ( KeyCode . B ) ) { ShakingRotationFraction -= .0001f ; }
217
- if ( Input . GetKeyUp ( KeyCode . K ) ) { shakeTransversly = ! shakeTransversly ; }
215
+ if ( Input . GetKeyUp ( KeyCode . K ) ) { shakeTransversely = ! shakeTransversely ; }
218
216
if ( Input . GetKeyUp ( KeyCode . M ) ) { shakeRotationaly = ! shakeRotationaly ; }
219
217
220
218
if ( Input . GetKeyUp ( KeyCode . R ) ) { automaticDepostion = ! automaticDepostion ; }
@@ -242,7 +240,7 @@ void Update () {
242
240
if ( Input . GetKeyDown ( KeyCode . F1 ) ) { Application . Quit ( ) ; }
243
241
244
242
// Shaker
245
- shaker . shakeBox ( shakeTransversly , shakeRotationaly , ShakingFraction , ShakingRotationFraction ) ;
243
+ shaker . shakeBox ( shakeTransversely , shakeRotationaly , ShakingFraction , ShakingRotationFraction ) ;
246
244
OnValidate ( ) ;
247
245
248
246
}
@@ -386,17 +384,17 @@ public void LoadConfigurationFile()
386
384
SolverIterationCount = configFile . getInteger ( "Solver Iteration Count" ) ;
387
385
velocitySolverIterationCount = configFile . getInteger ( "Velocity Solver Iteration Count" ) ;
388
386
SleepThreshold = configFile . getFloat ( "Sleep Threshold" ) ;
389
- BounceThreshold = configFile . getFloat ( "Bounce Threashold " ) ;
387
+ BounceThreshold = configFile . getFloat ( "Bounce Threshold " ) ;
390
388
TimeScale = configFile . getFloat ( "Time Scale" ) ;
391
389
TargetFrameRate = configFile . getInteger ( "Target Frame Rate" ) ;
392
390
contactOffset = configFile . getFloat ( "Contact Offset" ) ;
393
391
394
392
// Shaking
395
- shakeTransversly = configFile . getBoolean ( "Shake Transversly " ) ;
393
+ shakeTransversely = configFile . getBoolean ( "Shake Transversely " ) ;
396
394
shakeRotationaly = configFile . getBoolean ( "Shake Rotationally" ) ;
397
395
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" ) ;
400
398
401
399
// Folder
402
400
projectFolderPath = configFile . getString ( "Project Folder Path" ) ;
@@ -501,19 +499,19 @@ public void SaveConfigurationFile()
501
499
rawData . AppendLine ( "Solver Iteration Count" + " = " + SolverIterationCount ) ;
502
500
rawData . AppendLine ( "Velocity Solver Iteration Count" + " = " + velocitySolverIterationCount ) ;
503
501
rawData . AppendLine ( "Sleep Threshold" + " = " + SleepThreshold ) ;
504
- rawData . AppendLine ( "Bounce Threashold " + " = " + BounceThreshold ) ;
502
+ rawData . AppendLine ( "Bounce Threshold " + " = " + BounceThreshold ) ;
505
503
rawData . AppendLine ( "Time Scale" + " = " + TimeScale ) ;
506
504
rawData . AppendLine ( "Target Frame Rate" + " = " + TargetFrameRate ) ;
507
505
rawData . AppendLine ( "Contact Offset" + " = " + contactOffset ) ;
508
506
rawData . AppendLine ( "-----------------------------------------------" ) ;
509
507
510
508
// Shaking Parameters
511
509
rawData . AppendLine ( "- Shaking Parameters" ) ;
512
- rawData . AppendLine ( "Shake Transversly " + " = " + shakeTransversly . ToString ( ) ) ;
510
+ rawData . AppendLine ( "Shake Transversely " + " = " + shakeTransversely . ToString ( ) ) ;
513
511
rawData . AppendLine ( "Shake Rotationally" + " = " + shakeRotationaly . ToString ( ) ) ;
514
512
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 ) ;
517
515
rawData . AppendLine ( "-----------------------------------------------" ) ;
518
516
519
517
// Folder Parameters
0 commit comments