Boat movement control, fixed speed & steering

You need to have a bool ‘forward’. When the player presses W, the bool get set and a copy of the code used to move forward runs continuously, until the player presses S ( or W again? ), then the bool gets set to false.

As far as the steering goes, same sort of idea, but not a boolean. You’ll want to send the steering back to it’s default position with a interp node to get the right feel.

Can’t really say much else without seeing any blueprints.

Hi!
I´m trying to create a boat simulation project with the plugin OceanProject but having trouble with the steering and the movement forward/ back.
At the moment the plugin uses w,a,s,d for movement but when I don’t press w the boat slows down. In real life the thrust is fixed and goes on with same speed until next adjustment. ,How do I replicate this behavior? Same goes for steering. The steering wheel shall not go back to default position. My aim is to take an old optical mouse and build a stick that uses the x- or y-axis of the mouse.

All help is much appreciated.

300831-throttlelever.png

does this apply to mose axis as well?

yes and i want to use an axis for the “forward” as well not key press…

pushing mouse forward = increase speed,
backwards = decrees

within range and a dead zone for neutral/idle position

Do you mean you can steer the boat with a mouse? Then yes, you could use interp here also.

It really depends what you have so far, and what you’re trying to do…

I don’t think there’s a fixed way of doing this, it sounds like you want to develop you own control system.

I might be easier to control the boat depending on where the mouse is on the screen, rather than trying to catch a slight forward or backward movement.

interesting about the repurposed optical mouse… very GDC Alt.Ctrl :slight_smile:

what I’d suggest is using your key or mouse input to add and subtract to the variable itself… so when you. The multiplier determines the speed of the acceleration and clamp keeps it within a certain range, which is likely to be useful. You might use an Finterp (for floats) and and Rinterp (for rotations) to smooth it too.

Thanks I will dismantle my old mouse and try to implement your suggestion, see how it goes

steering is fine but the speed is only forward and idle. not backwards. what am i doing wrong?

I’m learning myself but could it be missing the negative 1 in axis in project settings inputs?

Just learning myself and ran into a similar problem with character axis mapping. Does your axis mapping for this action have a -1 scale set to it in addition to the positive scale in project settings?