Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Download Outerra Tech Demo. Unofficial Outerra Discord server, MicroProse Discord server for OWS.

Pages: [1] 2

Author Topic: Boats  (Read 14665 times)

Bob425

  • Jr. Member
  • *
  • Posts: 45
Boats
« on: August 31, 2018, 02:22:47 pm »

Under the new version, the US Coastguard boat sits very stern down, even when static, I have tried to correct this without any success.

Logged

patmarrnc

  • Full Member
  • ***
  • Posts: 136
Re: Boats
« Reply #1 on: August 31, 2018, 05:22:48 pm »

yes, all the boats I've created have the same problem.  (I haven't tried changing the center of gravity in the script yet)  I didn't really want to start changing the scripts (not my forte) until hearing if there is some other solution
Logged

Bob425

  • Jr. Member
  • *
  • Posts: 45
Re: Boats
« Reply #2 on: August 31, 2018, 06:06:38 pm »

yes, all the boats I've created have the same problem.  (I haven't tried changing the center of gravity in the script yet)  I didn't really want to start changing the scripts (not my forte) until hearing if there is some other solution

The strange thing is that two of my boats sit on an even keel, while others misbehave like the US Coastguard.
Logged

patmarrnc

  • Full Member
  • ***
  • Posts: 136
Re: Boats
« Reply #3 on: August 31, 2018, 07:43:24 pm »

All of mine are very small (row boat, motor boat, kayak etc) and they worked "reasonably" OK in the previous version. I'm no javascript whiz, that's for sure. I usually take other peoples' scripts and mutilate them until the damage is acceptable to me.  In the new version the small crafts not only sit unevenly in the water, they also perform erratically.

1) I can't seem to find a setting at which the crafts don't bob excessively in the water (going completely underwater then rising completely out of the water)

2) In the process of bobbing, the interior of the crafts appear to fill with water (would collision fix that?)
Logged

KW71

  • Outerra Developer
  • Hero Member
  • *****
  • Posts: 762
  • Love OT!
Re: Boats
« Reply #4 on: August 31, 2018, 07:51:37 pm »

Hi, patmarrnc and Bob425!
I really don't have idea, but could the boats issue be related to the thread about vehicles bouncing?
https://forum.outerra.com/index.php?topic=3845.0
Logged
"A man who is contented with what he has done, will never become famous for what he will do".

Bob425

  • Jr. Member
  • *
  • Posts: 45
Re: Boats
« Reply #5 on: August 31, 2018, 09:59:27 pm »

Cracked it!! The boat's center of gravity must be central, not one third back as normal, as shown below:-



Logged

fly77

  • Outerra Master Modder
  • Hero Member
  • *****
  • Posts: 1761
Re: Boats
« Reply #6 on: September 01, 2018, 02:57:23 am »

how to set the center of gravity of the boat ? I do not understand which of the parameters in the javascript file I need to change and which value to set.
Logged

Bob425

  • Jr. Member
  • *
  • Posts: 45
Re: Boats
« Reply #7 on: September 01, 2018, 05:06:56 am »

how to set the center of gravity of the boat ? I do not understand which of the parameters in the javascript file I need to change and which value to set.

No, you do not understand, you have to make the changes to the model itself, using a 3D modelling program like MAX or Blender.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Boats
« Reply #8 on: September 01, 2018, 09:18:49 am »

By default the center of mass is taken from model's pivot, but you can also modify it in the script by adding com property in parameters returned from init_chassis. That tells the distance to shift the COM from the pivot:

Code: [Select]
function init_chassis(){
  return {
    mass:18000,
    hydro_h1:3,
    hydro_h2:5,
    hydro_uplift:6000,
    Cx:{x:1.2, y:0.1, z:1.2, w:0.8},
    com:{y:2}
  };
}
Logged

Bob425

  • Jr. Member
  • *
  • Posts: 45
Re: Boats
« Reply #9 on: September 01, 2018, 09:52:49 am »

By default the center of mass is taken from model's pivot, but you can also modify it in the script by adding com property in parameters returned from init_chassis. That tells the distance to shift the COM from the pivot:

Code: [Select]
function init_chassis(){
  return {
    mass:18000,
    hydro_h1:3,
    hydro_h2:5,
    hydro_uplift:6000,
    Cx:{x:1.2, y:0.1, z:1.2, w:0.8},
    com:{y:2}
  };
}

Thats very intersting, cameni.
If I had known this it would have saved me a lot of time.
Thank You.
Logged

patmarrnc

  • Full Member
  • ***
  • Posts: 136
Re: Boats
« Reply #10 on: September 02, 2018, 01:46:20 pm »

thank you very much, Cameni!

You had already told me about how to change the center of gravity in the script (when my cars wer leaning sideways and tipping over), but I hadn't gotten around to trying it yet on my boats. 

But I also appreciate your inclusion of some other variables that will probably work better than what I've got in my script.
Logged

Bob425

  • Jr. Member
  • *
  • Posts: 45
Re: Boats
« Reply #11 on: September 05, 2018, 02:02:13 pm »

Are there any variables in the boat's .js file to raise the bow when up to speed, a semi-planning attitude?
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Boats
« Reply #12 on: September 05, 2018, 04:12:05 pm »

Logged

Bob425

  • Jr. Member
  • *
  • Posts: 45
Re: Boats
« Reply #13 on: September 05, 2018, 06:56:57 pm »

Many thanks, Cameni.
Logged

Bob425

  • Jr. Member
  • *
  • Posts: 45
Re: Boats
« Reply #14 on: September 07, 2018, 09:22:31 am »

Are there any plans to add a bow wave to watercraft?
Logged
Pages: [1] 2