Тёмный

Unity 3D | How To Control A Door Using Raycast (And Animate) | Tutorial 

DG47Studios
Подписаться 27
Просмотров 885
50% 1

In this video, we go through how to animate and control a door using raycast inside Unity 3D!

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

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@DG47Studios
@DG47Studios Год назад
Apologies for the quality, I had to download this video from RU-vid as I don't have the original file anymore (from my main channel)
@soumysahu
@soumysahu Месяц назад
pin my comment
@Geetabishnoi_
@Geetabishnoi_ 2 месяца назад
Its working brother thank you 🙏🙏🙏🙏🙏🙏🙏🙏🙏
@soumysahu
@soumysahu Месяц назад
Here is a less spaghetti code: on Interaction script fire this function: bool isOpen; void DoorRotate() { Animator anim = this.GetComponentInParent(); anim.SetBool("IsOpen", isOpen); isOpen = !isOpen; } and in the animator set the bool variable's name to IsOpen{open} condition = IsOpen(true)--disable exit time->close [between open and close] ->{close} condition = enable has exit time [between close and idle] bool in interaction scrip if false by default and in the animator is true by default
@Ethan-nc6rb
@Ethan-nc6rb 10 месяцев назад
really useful video and the first that actually worked with no issues great work
@DG47Studios
@DG47Studios 10 месяцев назад
Thank you!
@thelonghaul9902
@thelonghaul9902 8 месяцев назад
Mine's not working it says it's not playing an animation controller on the console.
@DG47Studios
@DG47Studios 7 месяцев назад
sorry for the late response, be sure you've double checked every small detail i did in the video to make sure u didnt miss anything
@magplay15
@magplay15 7 месяцев назад
I have an issue. When i want to open another door with raycast. It's animating together. Can you solve it ?
@DG47Studios
@DG47Studios 7 месяцев назад
You'll need to use separate animations for every door (just repeat what you did with the first door) as the doors you have now are using the same animator controller
@magplay15
@magplay15 7 месяцев назад
@@DG47Studios which means with the different or another script codes ?
@DG47Studios
@DG47Studios 7 месяцев назад
@@magplay15 You can use the same script! Just need a different animator controller for each door (im pretty sure, its been a long time since i had this video)
@ROCKSMASHER
@ROCKSMASHER 10 месяцев назад
Nice
@DG47Studios
@DG47Studios 10 месяцев назад
nice
@Loyal_boy_94
@Loyal_boy_94 8 месяцев назад
Hii brother my project Null Not assign
@DG47Studios
@DG47Studios 8 месяцев назад
what do you mean?
@huynluna3244
@huynluna3244 Год назад
Thank you so much, I have a bug that the door go loop in it default state. your clip in 2:45 save me
@DG47Studios
@DG47Studios Год назад
no worries! glad i could help
Далее
Fake watermelon by Secret Vlog
00:16
Просмотров 8 млн
OPENING a DOOR in UNITY with a RAYCAST
18:18
Просмотров 53 тыс.
ChatGPT in Unity is INSANE!
9:54
Просмотров 186 тыс.
Raycasts in Unity (made easy)
16:30
Просмотров 91 тыс.
How to Make a Door System in Unity - Unity C# Tutorial
23:55
I Made My First Game in Godot in 3 Weeks...
26:21
Просмотров 339 тыс.
Fake watermelon by Secret Vlog
00:16
Просмотров 8 млн