Unreal Engine Buoyancy - Making a Boat Float in UE 5.3

  Рет қаралды 3,784

Peanut Games

Peanut Games

3 ай бұрын

How to use Unreal Engine's Buoyancy Component to make a floating boat actor.
Here is the link to the UE5 documentation ( boat mesh )
docs.unrealengine.com/5.2/en-...
Check out my Unreal Engine marketplace assets:
Physical Material Profiles - Footsteps and Impacts
www.unrealengine.com/marketpl...
AI Jump Navigation Links
www.unrealengine.com/marketpl...
Advanced Mobile Camera - Enhanced Input
www.unrealengine.com/marketpl...

Пікірлер: 34
@pyotrvasechkin4620
@pyotrvasechkin4620 2 ай бұрын
Thank you very much for the video, can you make a tutorial on how to create a steerable boat?
@borisaceski6401
@borisaceski6401 2 ай бұрын
Lovely video mate! Would love too see a masking solutionfor the water inside the boat.
@John_atCTS
@John_atCTS 2 ай бұрын
Thanks. Yes, would definitely like to see how to mask out the water from the boat.
@peanut_games
@peanut_games 2 ай бұрын
uploading in like an hour
@astralstormgamestudios1259
@astralstormgamestudios1259 Ай бұрын
Thank you!
@yotube....
@yotube.... 2 ай бұрын
yes please, one to take out the water off the object
@smokeNghost86
@smokeNghost86 2 ай бұрын
great content, exactly what i needed. im curious though how you might make the boat sink in game? I'm making a pirate ship game and I want my ships to take on water when they get shot. i figured i can simulate that by doing what you're doing and somehow link the buoyancy to the ships health, the lower the health and add a water effect for cannon balls that show below the water line. but im curious to know how you would approach it because im trying to find things on youtube about sinking ships but i just find them on floating.
@peanut_games
@peanut_games 2 ай бұрын
Thanks! That sounds like a good start to me. Once the boat 'dies' set the buoyancy just low enough that it slowly sinks then for optimization disable physics once it reaches a certain depth/destroy it. Take a look at the next video too if you haven't. With that method you can toggle the visibility of the water mask mesh to dynamically show/hide the water inside the boat.
@user-ty3jd7po3n
@user-ty3jd7po3n 2 ай бұрын
I love your boat series so far and i hope there is more content coming from you. You have a great way of explaining things. I Love how you give insight to the UE5 Documentations too and it feels like you're doing things like they are supossed to. I've noticed that my Boat Mesh from a Free UE marketplace asset is not behaving like the BP_Buoyancy_Example Cube. The Cube falls down immediatly when pressing Play, but the Free Boat Mesh that i use just stays where I placed it without falling down. I get the Error Message "trying to Simulate Physics on "BP_Boat_C_1.StaticMesh" But it has ComplexAsSimple Colission". I guess the problem is with the Free UE5 Boat Mesh that i use. maybe somewhere in the settings? Any Idea? Thanks alot!
@peanut_games
@peanut_games 2 ай бұрын
I appreciate the kind words! To be honest I don't have a concrete follow-up video decided as this seems to be completed, maybe swimming or a look at what I've been working on personally. Let me know what else you'd like to see! As for that message you're getting, yes it's a setting in the mesh itself and it's called "Collision Complexity", for simulation it must use simple collision. Setting it to project default should work.
@user-ty3jd7po3n
@user-ty3jd7po3n 2 ай бұрын
@@peanut_games Changing the Mesh Settings into Project Default worked like a charm. Thank you very much. As for another content idea I'd suggest Combat Mechanics, like Shooting out of the Boat etc. or Getting water effects caused by the boats movement, so it appears more natural when you're driving the boat and it causes a "footprint" stain. Excuse my english :D. Introducing a interactable Wheel you can drive the boat with would also be cool. I really appreciate your commitment. This type of content is really highly in demand and I hope you can make it big!
@user-ty3jd7po3n
@user-ty3jd7po3n Ай бұрын
@@peanut_games Just had an Idea: If a boat DOES flip over and is upside down in the water, make it either IMPOSSIBLE for the boat to flip over, OR if its upside down in the water or sth, make it automatically go back upright again so the Boat is always in a good position on Water. Sometimes by slightly touching the boat too much it can flip over too hard. Also, i highly recommend setting up a Discord Server for this KZbin Channel.
@peanut_games
@peanut_games Ай бұрын
@@user-ty3jd7po3n Yeah I could make like a polishing the boat video, with a bunch of little things to make it more game ready. I've gotten a couple discord mentions before so I have been thinking about it
@technicalhariom1291
@technicalhariom1291 2 ай бұрын
Bro thanks for this but is it possible to add this on custom material shader (a plane with a simple water material)
@peanut_games
@peanut_games 2 ай бұрын
Ah you could use water body custom which uses a plane, but you gotta do a workaround to get buoyancy to work. To get buoyancy to work with water body custom, the water mesh has to be a solid cube, with the pivot point at the surface. This is what I was mentioning at the end of the first water video
@dangerousmindgames
@dangerousmindgames Ай бұрын
My boat with everything set up identically sinks like a stone. Any idea why it works for the example cube but not anything else?
@peanut_games
@peanut_games Ай бұрын
It's possible the mass is auto calculated way too high for the strength of buoyancy.
@UnTouchedByTime77
@UnTouchedByTime77 20 күн бұрын
i had the same issue. i fixed it by attaching the static mesh to the default scene root in the BP actor page. i missed that when watching the video
@cewok9068
@cewok9068 Ай бұрын
I don't have the option WaterBodyCollision in the collision presets for some reason
@cewok9068
@cewok9068 Ай бұрын
NVM, I just had to add the entry to the DefaultEngine.ini. The engine tells you that when you open it
@peanut_games
@peanut_games Ай бұрын
Make sure all the water plugins are activated and restart the editor
@muralist1
@muralist1 2 ай бұрын
Didn't know the WaterBodyCustom was "kind of broken," thought it was something I did. What are the issues with it and how can we overcome them? Is there a better way to get a large ocean? I have a large terrain model with islands and have the WaterBodyCustom set up as my ocean, but I've had some trouble.
@peanut_games
@peanut_games 2 ай бұрын
Yeah I'd definitely reserve water body custom for only pools, puddles, etc. Large ocean is what water body ocean is for! The collision on the water body custom plane is completely broken, which means so is buoyancy. You have to manually change the water mesh to a cube with the pivot *at the surface* for it to work, and even then the post process didn't seem to work at all. So yeah just use ocean, lake, and river with overwhelming preference. If you want no islands just uncheck affects landscape and set all the land spline points at 0 in the SplineComp in the WaterBodyOcean details.
@muralist1
@muralist1 2 ай бұрын
@@peanut_games Okay, I'll change over to Ocean. I think originally I tried that but it deformed my real world terrain, as in wrecked it. I don't want any islands nor landscape deformation, just water to fill my terrain which already has islands. If I set all the land spline points to 0 in the SplineComp will it do that?
@peanut_games
@peanut_games 2 ай бұрын
@@muralist1 The "Affects Landscape" flag prevents it from changing landscape, but that leaves a hole in the center where the default island would be - so setting the spline points to exactly 0 fills that hole thus making it clean near infinite ocean.
@muralist1
@muralist1 2 ай бұрын
@@peanut_games Did both of those and now its just ocean and my terrain. Thanks!
@peanut_games
@peanut_games 2 ай бұрын
@@muralist1 awesome no problem
@betraid
@betraid Ай бұрын
I have waterbodycollision as collision preset on my water body ocean, but this buoyancy cube is not reacting to it, it just falls through
@peanut_games
@peanut_games Ай бұрын
Is the cube above the water before starting? It can't be overlapping at all
@betraid
@betraid Ай бұрын
@@peanut_games yes it is above the water, dunno why it isn't working😅 when i did it on my boat, it worked, but doing strange movements, looks like it needs ton of tweaks and time. I just was looking for way to animate boats for my open world level, nothing fancy, just floating simulation on same place.
@peanut_games
@peanut_games Ай бұрын
@@betraid linear and angular dampening are probably the most relevant as they set resistance to movement, so if it's acting crazy I'd star there. The locations of pontoons is important too, spread them out more to stabilize. Doesn't make sense why the demo cube isn't floating though, it should work as they provide it as long as the water has the right collision profile. Maybe this is stupid but make sure the WaterBodyCollision profile is actually set to overlap the desired objects, and that your objects have Generate Overlap Events ticked.
@betraid
@betraid Ай бұрын
@@peanut_games it could be some bug maybe, since i have pretty large water body ocean, covering large island 15k actors in total:D
@unrealversum7729
@unrealversum7729 2 ай бұрын
yes please, no water in boat
Why Solo Developers Should Use Unreal
10:55
Thomas Brush
Рет қаралды 292 М.
Unsink Your Boat - How to Remove Water From Boat in UE5.3
10:00
Peanut Games
Рет қаралды 2,6 М.
I Need Your Help..
00:33
Stokes Twins
Рет қаралды 133 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 73 МЛН
Best Patrol Boats in the World
8:41
SPOTLIGHT
Рет қаралды 59 М.
I Made a Game With Only FREE Assets In Unreal Engine 5
11:45
Smart Poly
Рет қаралды 464 М.
Drive Your Boat - Boat Vehicle Tutorial for Unreal Engine 5.3
18:28
Peanut Games
Рет қаралды 2,8 М.
Unreal Engine 5.4 Motion Matching in 13 Minutes | 2024
13:41
Reality Forge
Рет қаралды 72 М.
Unreal Engine 5 - REALISTIC OCEAN - Fluid Flux 2.0
8:51
Smart Poly
Рет қаралды 132 М.
Tutorial Secrets, Level 1 | Voices Of The Void
20:09
The Voices Network
Рет қаралды 41 М.
Input Mappings Deprecated in UE5.1 - Enhanced Input Tutorial
7:47
Peanut Games
Рет қаралды 19 М.
Fluid Flux 2.1 - Stormy ocean [Unreal Engine 5]
2:19
ImaginaryBlend
Рет қаралды 18 М.
Sail Your Boat - Wind Mechanics Tutorial UE 5.4
21:25
Peanut Games
Рет қаралды 517
g-squad assembles (skibidi toilet 74)
0:46
DaFuq!?Boom!
Рет қаралды 10 МЛН
HEROBRINE vs NIKOCADO AVOCADO Rank Up Challenge
0:20
Mazizien
Рет қаралды 8 МЛН
Caseoh VS Sonic & Aphmau | Minecraft & Sonic
0:12
Mischief time
Рет қаралды 11 МЛН
Bling Bang Bang Born fight: Aaron Vs Zane #minecraftshorts
0:13
BigBlockCraft
Рет қаралды 13 МЛН
Body Symbol Game With Sonic And Shadow
0:23
Intalord
Рет қаралды 10 МЛН