Тёмный

Unity C# Bitesize - Raycasting - (Beginner) 

Dapper Dino
Подписаться 60 тыс.
Просмотров 2,9 тыс.
50% 1

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

 

9 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@PixelWitch
@PixelWitch 4 года назад
Thank you for doing this in a simple way. most of the other tutorials I looked at for this had to do with shooting, and spent time setting up the gun and the enemies and health and all. This was down to just the basics and I really appreciated it!
@MattBee2k2
@MattBee2k2 4 года назад
Why do you check if an input wasn't pressed? I've noticed you've done this in several videos and not sure why.
@JonesSeries
@JonesSeries 4 года назад
Great video, this is something I was needing learn. I thought it was going to be super complex, I feel better about it now. Can you explain the difference or point me to where to find out the difference of Universal render pipeline and just picking 2D mode? I am working on a 2D game that is focused at Mobile market, should I be using the Universal render pipeline?
@kenpachi465
@kenpachi465 4 года назад
I was just searching about this
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
Hope it helps!
@kenpachi465
@kenpachi465 4 года назад
@@DapperDinoCodingTutorials Can you demonstrate how to use raycast to hit the side of the object?
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
I'm not quite sure what you mean by that?
@kenpachi465
@kenpachi465 4 года назад
@@DapperDinoCodingTutorials Is it possible to instantiate a sphere to the left side of a cube using raycast while facing the front side and clicking the left side?
@spartanfandmd5936
@spartanfandmd5936 4 года назад
@@kenpachi465 I don't see why you wouldn't be able to. I'm no expert so I would suggest doing some more research on this, but it seems possible with just the point property of a RaycastHit docs.unity3d.com/ScriptReference/RaycastHit-point.html. It gives you the point in space where the ray hit the collider. Again I'm no expert, but that seems like it would work to get a position to instantiate something.
@mademade5939
@mademade5939 4 года назад
Hi man, may i ask a video about coroutin?? Im really struggling understand how it works by just look code on google, im try search a video also in youtube... But i dont get it too..... Anyway in my case i wanted to rotate a camera anytime player hit triger, so the triger will give the direction, and pass it too game controller and from game controller i think we can start a coroutine from camera and do rotate with direction that came from triger.... Finally manage to understand how to rotate camera, after searching long time so we need quaternion. Euler first, then itry find an example of coroutine in google and try run it from the start so when bool become true the code run, but the problem is somehow i can control the speed of rotation.... Anyway about rotation i use transform.rotation = Quaternion. Lerp(transform. Rotation, targetdirection, smooth(float value) and no matter what value i put in smooth i feel no controll of speed it lerping
@arionpaul6208
@arionpaul6208 4 года назад
Cool, thanks
@lucky4the4turtle
@lucky4the4turtle 4 года назад
What are those references that appear above your methods in your scripts?
@joll98
@joll98 4 года назад
it means how many times the function is referenced. Its 1 reference above FireRaycast since he is calling it one time in the update method.
@reallocal
@reallocal 4 года назад
Love These Videos!
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 года назад
Nice! I'll keep making more :D
Далее
Unity C# Bitesize - Coroutines - (Intermediate)
10:06
Просмотров 2,7 тыс.
Unity 6 - Unite 2023 Highlights
7:34
Просмотров 2,5 тыс.
Angry Penguin - Official Trailer
0:48
Просмотров 11 тыс.
How To Make A Unity Multiplayer Lobby System In 2023
23:50
How a Player Teleports Unreal Engine 5
3:15