First time I am considering to make some boat racing project, I have made car and motobike projects, but how can i get boat or ship to move in water, I mean if i add boat if goes immediately bottom of lake/ocean, some physic stuff, but not know how to start
You’ll have to implement your own physics simulation for water as its not really handled by default.
Start off by splitting it into the basics. What does a boat do? It floats. Floating is buoyancy. Watch a tutorial on how to implement object Buoyancy: https://www.youtube.com/watch?v=kkxJeyG2whw
After that, you should be able to figure out how to affect it so it moves depending on player control, such as manually setting its velocity or adding torque/physics rotation/impulse, using thrusters, etc, depending on what key the player presses.
Or you can watch a tutorial on how to make hovering vehicles using raycasts from wheel positions or whatever, and just make it so it raycasts to hit the water plane and thats where the model should be, etc. You can go as simple or complex as you’d like, keeping in mind truly realistic/real-world accuracy hydrodynamics in terms of it being a freaking ocean ship navigation simulator requires a degree in hydrodynamics and a large team of programmers; coming from someone who used to work at Kongsberg Maritime simulation used by government agencies where the simulations had to be as realistic as possible (I was a modeler, not a programmer though for that job).
But game physics should be easy enough for boats that float by following the above tutorial, thinking about how people implement hovering vehicles in games, etc. Alot of vehicle physics in games are basically raycasts from a physics object, from hovering cars to cars to boats. The raycasts determining where to place wheels, how much force to apply in the opposite direction of the raycasts hit point to keep the vehicle upright, etc.
Best of luck!
You should reconsider this idea. Or at least do serious research first. There is one huge problem with unreal, currently it cannot produce nice water sharder.
So i strongly suggest working on water shader first, if you get result that you are happy with you may proceed with physics of water.
thanks for advices, not usually buy marketplace, but there is good looking water asset where is easy to add like boat etc: https://www.unrealengine.com/marketplace/physical-water-surface need only make boat controls, that asset looks good but not no will it make things easier
and if someone has working boat to unreal water, can pay it for some money
A bit late but here is a link https://www.unrealengine.com/marketplace/en-US/slug/drivable-boat
For movement forward, TaskPawn is an Actor or a Pawn, e.g. a blueprint with a boat mesh. The actor mesh is aligned to the X axis. This example here works without possessing the pawn.
Movement, rotation, rotates the boar actor, or pawn
Optional calling an interface (added to Player Character and PC AnimBP), to set dedicated boat animation