hi, I wanted to check this out with LuxWater
the wake foam seems to have a problem with ocean, it’s above the ship. does it work with waves?
on the bottom of the page: [RELEASED] Lux Water page-37
but my main issue is the input, I want to use a separate script to set values manually
http://dynamicwaterphysics.com/doku.php/Input
here says this should work
Input now can be set from any script:
myShipController.input.Horizontal = myFloatValue;
my script looks like this
namespace NWH.DWP2.ShipController
{
public class boatCX : MonoBehaviour
{
public AdvancedShipController shipControl;
public float steer;
public float throttle;
void Update()
{
shipControl.input.Horizontal = steer;
shipControl.input.Vertical = throttle;
}
}
}
but I get the error
Assets\boatCX.cs(15,22): error CS1061: ‘ShipInputHandler’ does not contain a definition for ‘Horizontal’ and no accessible extension method ‘Horizontal’ accepting a first argument of type ‘ShipInputHandler’ could be found (are you missing a using directive or an assembly reference?)
or if I use
shipControl.input.states.Horizontal = steer;
I get this
Assets\boatCX.cs(15,29): error CS1061: ‘ShipInputStates’ does not contain a definition for ‘Horizontal’ and no accessible extension method ‘Horizontal’ accepting a first argument of type ‘ShipInputStates’ could be found (are you missing a using directive or an assembly reference?)
also says
AutoSettable should be set to false.
isn’t this the Auto Set Input?
what is throttle 2, 3, 4?