[Unity 4] Floating physics objects (JavaScript)

preview_player
Показать описание
In this tutorial I show you how to create floating physics objects on water within Unity3D. This is to follow my previous physics tutorials, and basically shows floating objects, the script is written in Javascript.

·························································································

🠺🠺🠺Check Out My Assets:

························································································

························································································

·······················································································
Рекомендации по теме
Комментарии
Автор

This script works great for emulating floating physics and is surprisingly simple. Well done.

thegide
Автор

A few tips for implementing this:
- Run the loop update on the body of water instead of items
- You will probably need to seriously tweak the values for items you add
- Doable with 2D (currently using and it works fine, just modify to use y axis)

AshBlue
Автор

You could still change the drag for the underwater part of the object. But great work. Thank you for these underwater tutorials, they are incredibly useful!

DerAua
Автор

wow, that scene of your looks gorgeous with the color of the tiles.

supervideogamerking
Автор

not sure if you have a vid of it but could you try do interactive water like you walk in it and waves come off you and stuff like that?

flancanstain
Автор

"says javascript in the title"
me: J-JJ-J-J-J JAVAscript?! "shakes"

magnusm
Автор

hey man! im struggeling with making a boat float that is driveabel i would love if you would make a tutorial about that

xXkillersyouXx
Автор

your tutorials are so easy and clean. well done dude! and pls continue the survival series!

bastelbudi
Автор

Hey Bud Hope your doing great from you surgery. Just wondering if you had a way to do this in c# yet? thanks

glitchrigors
Автор

Why the hell did I not watch this before! Freaking helped a lot!

MerriemWeebster
Автор

Hi! I create my personal water (a plane with transparent water texture), and I need to floating objects on she. So, what I need to change in this script to do this? Instand of "waterlevel" I need to write the name of my water, like "Plane" or "Ocean"?

I don't understand yet the scripts in Unity.
Thanks!
Sorry for my bad english!

cosminavieru
Автор

Love the accent





and the video. Thanks!

richc
Автор

Great tutorial! Thank you for this! One of my favorite tutors!

HovdyBrovdy
Автор

if i wanted to pass the y position  of my water into the water level variable what would i need to do sorry im new to js  also what would i do if i want the object to just float in water as this dosent seem to work in 4.5

chaos
Автор

Is there any way to make it so the water sound is only played when the barrel hits the water?  When I knock over my barrel on the ground, it plays automatically.

TreasonsBeta
Автор

Awesome!!!, but here's one I've got, when you pushed that barrel into the water and it made a splash sound effect but it didn't make any water splashes, can u make a tutorial on making water splashes when an object hits the water.

MaurerEdits
Автор

This is great, however I suck at coding and I cant find the error.. Im using unity 5.6 do you think you could place a link with the finished script which I can just copy in my file please? This is exactly what I was looking for! Great tutorial, but pls help :D

AlphaCollectorCZ
Автор

Momentum isn't accounted for in this script, so now I have InfiniBarrel! Funny, but not quite what I'm looking for. I know this is an old video, but could you help me out?

TheBcoolGuy
Автор

Thanks a lot! I could use this in my game! :D

AlanjGames
Автор

Is there a chance that you could make a level design/ lighting tutorial? Your levels always looks so good, but I can never make mine as good as yours.

billdimes
welcome to shbcf.ru