Luftalagi
(peonmaster4)
December 17, 2023, 12:23am
#1
Hi,
I’ve begun working on a simple physics-based boat system for my game. The system is to have no waves and a small sinking animation.
How should I go about getting the boats to float and move? I don’t know what physics constraints to use.
My current set up uses a plane constraint to make the boat “Float” But that does not allow for dynamic sinking.
I am just asking for a basic idea, Thank you.
1 Like
There’s a lot of way you can do it. The easiest way imo is to use vector force to move forward/backwards and use angular velocity for turning.
For sinking instead of a plain constraint you could try using a body position; it’s depreciated, but it’s a solution.
NoxhazeI
(Johnathan)
December 17, 2023, 5:28am
#3
Heres a great in-depth tutorial by the genius @okeanskiy
Scottifly
(Scottifly)
December 17, 2023, 10:29am
#4
Roblox water has a Density of 1.
If you have a boat that the average Density is less than 1 it’ll float.
I build my boats with a very heavy Part at the bottom and make all the Parts above it (in the water) with a very light Density.
To make it sink just increase the Density with a script.
1 Like
Luftalagi
(peonmaster4)
December 17, 2023, 3:25pm
#5
The issue is I’m not using real water. I’m just using a plane.
Then you can tween the boat for sinking.
Also regarding this post
Just put it in a loop like I said.
1 Like