Author Topic: increase wave height  (Read 2381 times)

landroos

  • Newbie
  • *
  • Posts: 2
    • View Profile
increase wave height
« on: October 23, 2018, 01:20:40 PM »
hi.

how can I make bigger waves?
I'm trying to create a storm and the 12 (restricted) wave hight is to small.

Chingwa

  • Administrator
  • Hero Member
  • *****
  • Posts: 1704
    • View Profile
    • Tanuki Digital
Re: increase wave height
« Reply #1 on: October 23, 2018, 02:34:56 PM »
Hi landroos,

The default wave height works on the Beaufort scale which is a 0-12 range.  However you can set the waves to custom and increase the large wave height to be higher.

If you need even larger waves you should be able to edit the UI editor to allow larger numbers. Try opening the Editor/suimono_object_editor.cs file and around line 477 you'll see the following:

Code: [Select]
EditorGUI.LabelField(new Rect(rt.x+margin+10, rt.y+200, 120, 18),"Large Wave Height");
script.lgWaveHeight = EditorGUI.Slider(new Rect(rt.x+margin+165, rt.y+200, setWidth, 18),"",script.lgWaveHeight,0.0f,4.0f);

Changing the '4.0' at the end of the second line will allow you to make the max wave height larger.

Hope this helps!

landroos

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: increase wave height
« Reply #2 on: October 24, 2018, 02:04:37 PM »
yes that did it. thank you.

Ristau

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: increase wave height
« Reply #3 on: October 26, 2018, 06:21:36 AM »
What's the highest you can go wave hight-wise btw?
These tig welders are all you need most of the time.

Chingwa

  • Administrator
  • Hero Member
  • *****
  • Posts: 1704
    • View Profile
    • Tanuki Digital
Re: increase wave height
« Reply #4 on: October 26, 2018, 07:40:03 AM »
Well as long as we are talking about editing the numbers in the code then you can go as high as you want.  But of course waves will start to look unrealistic pretty quick, which is why I kept the max default at 4.0.

Kebebza

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: increase wave height
« Reply #5 on: August 13, 2019, 04:56:10 AM »
I think that is a good thing that has been fixed.