Тёмный

Unity 3D - How to stop objects from clipping into walls 

Niels dev
Подписаться 206
Просмотров 14 тыс.
50% 1

in this video we are going to fix your fps objects so it doesn't clip into the walls anymore. In #unity
00:00 Preview
00:14 Layer
00:34 Camera
01:08 Result

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@user-mk6eb7ui5w
@user-mk6eb7ui5w 4 месяца назад
Thx for this!!!
@irfansenatl2701
@irfansenatl2701 5 месяцев назад
Helpful
@Glasraf
@Glasraf 6 месяцев назад
Ty❤
@codeninjasoftegacayandfort9682
@codeninjasoftegacayandfort9682 2 месяца назад
thx so much what a great tutorial :)
@IntensityDev
@IntensityDev 2 месяца назад
Thank you very much!!
@blinkachu5275
@blinkachu5275 4 месяца назад
No, this is not a solution, and people should stop recommending this The moment you do this, your weapon no longer is lit by the environment and will always have the default lighting applied Ergo, you LOSE everything that makes the weapon feel part of the world, just so it doesn't clip through a wall The proper way to do this is through creating a custom shader for the materials on the weapon to always be rendered on top (difficult), or to move the weapon out of the way (upwards for instance) when you're close to a wall via a raycast check (easy to do)
@vatyunga
@vatyunga 4 месяца назад
It is still lit by the environment, but receives no shadows.
@IluXa4000
@IluXa4000 4 месяца назад
That's not a good solution, you would probably want to do smth else with this. Why is this bad? Cause u don't see clipping, but it happens. Imagine that now u may want to shoot enemy at close range, but weapon will fall into enemy collider and your shots won't be registered, cause bullet collision doesn't work from inside of enemy collider.
@vatyunga
@vatyunga 4 месяца назад
The worst part about this solution is that weapons won't receive any shadows from environment.
@IntensityDev
@IntensityDev 4 месяца назад
Maybe this solution works for you: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jXvVeckLIXo.htmlsi=cztJOA1B74NxHVmS
@BundlGaming
@BundlGaming 5 месяцев назад
I can't do this anymore because there's no clear flags option in unity.
@diamon_darms
@diamon_darms 5 месяцев назад
Camera -> Environment -> BackgroundType -> Unintialized Thats it i think
@BundlGaming
@BundlGaming 5 месяцев назад
@@diamon_darms Thanks
@diamon_darms
@diamon_darms 5 месяцев назад
a thing not shown in the video but that I had to do. In your second camera go to Camera -> Render Type -> Overlay, and your main camera: Camera -> Stack -> + -> your second camera. It worked this way for me
@MemSczyzna
@MemSczyzna 5 месяцев назад
is bad practic dude :/
@IntensityDev
@IntensityDev 5 месяцев назад
What is the good way? :)
@lx2222x
@lx2222x 5 месяцев назад
​@@IntensityDevHaving a second camera covering your entire screen causes a lot of overdraw which decreases fps by a lot
@IntensityDev
@IntensityDev 5 месяцев назад
@@lx2222x Hmm, i'll try to find a better way. Thanks for the feedback!
@MemSczyzna
@MemSczyzna 5 месяцев назад
renderer objects@@IntensityDev
@eslorex
@eslorex 2 дня назад
Not a proper solution
Далее
How to stop sticking to the wall/corners in Unity
2:00
How to ACTUALLY get into Gamedev
14:01
Просмотров 709 тыс.
How To Pick Up And Drop Items | Unity Tutorial
11:17
World's Most Impossible Trickshots
20:53
Просмотров 1,1 млн
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 699 тыс.
10 Minutes vs. 10 Years of Animation
19:29
Просмотров 775 тыс.
The Secrets of Photorealism
24:38
Просмотров 820 тыс.