How to Make Grappling Gun in Unity (Tutorial)
ฝัง
- เผยแพร่เมื่อ 22 มี.ค. 2020
- hey you slobs heres how to make a grappling gun
➤ WISHLST KARLSON - store.steampowered.com/app/12...
➤ Code - github.com/DaniDevy/FPS_Movem...
➤ Discord - / discord
➤ Twitter - / danidevyt
➤ Reddit - / danidev
➤ Facebook - / danimilkman
➤ Music by Neo Nomen, check him out! Friend of mine with awesome music :)
1. Neo Nomen - Little Sphere ( • Neo Nomen - Little Sph... )
2. Neo Nomen - Silverlights ( • Neo Nomen - Silverligh... )
/ nickygutt
*smash subscribe or i will grapple you*
also wishlist karlson on steam pls
i'm not first
i'm not last
but when i see the notification
i click fast
I WILL DO THIS AFTER THIS VIDEO
No u
i have it in my wishlist for roughly 2 months
Can you do a tutorial on enemy ai? I couldn't figure out how to use NavMeshAgent and physical movement of enemies. Or did you use another method?
Dani: *Doing a tutorial*
Also Dani: I will make the next tutorial in 5 years
yup
That's why I hate him
@@bathtub_farter bruh
DabTop Grid look kid do you thing Dani had Dani when he started coding no so you know what you can do learn the basics of coding so you don’t need danis tutorials and Dani is making a living leave the guy alone you know there are other tutorials specifically brackeys the guy he shouts out frequently in his actual videos
@@thothhernandez192 chill
"My next one...I'm probably gonna do wall-running"
*FAMOUS LAST WORDS*
Dani it's been 19 months and you still owe us a wall running tutorial.
lol
Here is a good one --- th-cam.com/video/Nx73K5qiTPc/w-d-xo.html
Agree
@@NightTimeDevelopments great job
real
When the world needed him the most
he disappeared...
wallrunning tutorial when
@MUHAMMAD AISY HAZIM BIN HUSNUL HAFIZ Moe i know that.. i was trying to make a joke
@MUHAMMAD AISY HAZIM BIN HUSNUL HAFIZ Moe pretty sure everyone knows this isn't his main channel dude smh
@MUHAMMAD AISY HAZIM BIN HUSNUL HAFIZ Moe bro obv this isnt his main
I am making a series on that
@@BluePhantomGames when
i wish he made more, dani actually gives me the motivation to make games
Wow that was
@@habratss wow that was cool
@@habratss really cool
A lot of people, including me started game development after seeing dani's devlogs.
Fr
danis tutorials are so smooth, easy to understand and pretty entertaining at the same time. A perfect way to make a tutorial for basically anything
hey dani, I just wanted to say, thanks for being a greats source of motivation for me. I am currently learning java and python and I hope to transition to making games in unity soon.
thanks for being awesome and I hope to play Karlson soon!
ive never seen dani so concentrated in his life... it kinda scares me
it was tough
@@DanisTutorials ikr
@@pavanraj698 unless?
Yes'nt
Do u have some movement script(s) 100% correct without any problems ?
Wait
Isnt that grappling gun looking kinda T H I C C
huh, i think youre right bro
Like your mom
its as THICC as ur MOM
no
How bout 2x THICCER than everybody's mom!
.
.
.
.
.
Yes, even -your- my mom...
I've been making games for over a week now and watching Dani's videos for like 5 days and cant get enough and this is the first tut I've seen of his... and its even more epic than his other content !!!!
Please make more tutorials... you literally give me so much motivation to make games
Hey Dani We Want A Wall Run Tutorial OR (YOU CAN"T DO THAT!).
he can't 😔
th-cam.com/video/qOVtucXxb1E/w-d-xo.html
here is my wallrunning code:
Ray left = new Ray(transform.position, transform.right * -1);
RaycastHit leftHit;
Ray right = new Ray(transform.position, transform.right);
RaycastHit rightHit;
if(Physics.Raycast(right, out rightHit, 0.8f))
{
GetComponent().useGravity = false;
onwall = true;
}
if(Physics.Raycast(right, out rightHit, 0.8f) == false && Physics.Raycast(left, out leftHit, 0.4f) == false)
{
GetComponent().useGravity = true;
onwall = false;
}
if (Physics.Raycast(right, out leftHit, 0.4f))
{
GetComponent().useGravity = false;
onwall = true;
}
It doesn't yet have animations, but they are pretty easy. Just add a parent to the camera and give it animations to enter and exit right and left walls and play them accordingly.
he cant
Perhaps he can't.
This channel should be called step by step tutorial to making your own karlson
“Hey guys and welcome on the Step by step tutorial to making your own Karlson channel”
Yes
so we don't need to wait for the game
Yeah no your wrong this is the dead channel now
Dani, please make more of these tutorials. They were so helpful to many people
bruh i wanted to make a game where its first person and u have a grappling gun, and turns out those are the only two tutorials, thank you dani
dude really just went to buy milk and never came back :'
I think were late to the video
I’m very late:)
@@raphaelcookie7331 Late party?
@Decoy yep, first time?
Late
"Hippity Hoppity your code is now my property."
wow that's prity cool
Same
@@insanepyromaniac prity
Best saying ever
lol
Dani it’s been 2 years, we need more of your tutorials! Also have a good time of existence whenever you read this.
he got burnt out
Karlson (3D) (sometimes stylized "K A R L S O N" or "KARLSON") is a game Dani is currently working on. The TH-camr Jotaro Music told Dani he can't make a 3D game and so Dani went to prove him wrong. As of now, there is no precise release date for it, but it's speculated it's coming at some point during 2024-2029.
this was meant to be sarcastic.
Such a good tutorial!
I sure hope he continues making tutorials on this channel!
he will not
@@denycrafty6498 it was a joke
I finally thought dani was gonna make a vid without saying thicc. Man, was I wrong.
you wish
@@DanisTutorials ooooomg dani! Keep it up with your vid and the humor u put in them. The "THICC' u put in your vids is pretty repetitive but hillarious
i love the fact that you try to stay serious in this channel and then just go "that line is just too THHhhhhhhick....."
Hey I’m very new too game developement and I’ve absolutely love your tutorials and I’d love to see more tysm
Thanks a lot Dani you got me into game development, I converted this to a third person controller and it works so thank you
Hey there, i also try to use a third person controller, could you maybe help me?
@@Krieger501 I don't really remember what I did that much but I remember positioning the camera to be behind the character and a bit off to the right of his shoulder, and the camera worked perfectly for third person so I just used the basic camera script as seen in his movement tutorial, hope this helps you in some way
If anyone is having trouble with their player grappling on to itself, like I did, you may have missed where at 3:59 Dani added whatIsGrappable to line 29 without saying anything. Hope I helped :)
Thanks actually
Thanks m8
Thanks i love u whats ur mums number
GrindyGamer tysm
thanks
Nobody:
Dani:
_I'mma dislike my own video_
0:31
OMG HAHAHAHAHAHAHA
nice observation
Bruh moment...
Hecc
What a madlad
dani, thank you, i have been trying this on and off since 2019-2020ish and now, 2022(that feels weird) after modification, i got a janky version and it feels amazing
This helped me out so much thank you! Please upload more on this channel
dani : the next tutorial will be in half a year
also dani : *not uploads in half a year*
fans : we've been bambozled
I hit the sack last night thinking: *I would really like an YT upload by Dani*
Me now: *yay*
CSL [GD] why would you hit the sack what did the sack do to you
Yeah what did the sack ever do
He stole my Christmas socks... :(
CSL [GD] i understand bro my sack stole my socks too
I feel your pain now 😔✊👌
Ahh. Dani tatourials where dreams come to die
dani's chill voice (without screaming and stuff) with chill music is very comforting to listen to, even when you dont understand the big brain stuff he is talking about
please make a tutorial about wall running and wall jumping i searched every were in youtube but i just find the perfect one,
like so dani can see
Wow a whole 2 videos that's amazing!
would you look at that i ended up here while searching for a tutorial, thx Legend, very cool👍
Great video! Just one little improvement for anyone (including you) who is seriously using this feature in a project, you should create the joint with all of it's parameters in the inspector and then simply enable it and set the anchor point in the StartGrapple() and disable it in the StopGrapple() methods, it is a bit more optimized :)
I love the model for the grappling gun! I really can’t wait to buy the game! First thing I did was wishlist Karlson!
same
Samd
Same
Same too
Wow I loved this tutorial, can’t wait for the next one
lol
yeah just wait 1992929 years
please continue this channl it was very helpfull
expecting a series on game dev for beginners too
Amazing. Really appreciate what you do and can't wait for Karlson release. Tho if I be completely honest with ya the rope coming outta gun is looking kinda *THICC*
10:08 its been 8 months now
I am still waiting for the wallrunning tutorial
when
he said he is not good at explaining things so i think he will not continue
Make it 9
@@nataliehartnett8102 it is nine now
@@poltergeist6917 nononononono! it's ten :>
@@1stOriginalCookie heh
I'm trying to do a simple bungee jumping Sim in VR. I think I'll use what I learn from your tutorial here and try it out. Thanks!
It works!!! I could never get this intergrated with my movement script but after actually following the tutorial it works!!!!
Awesome tutorial! Excited to see more like this :) I was wondering if you would be able to do a tutorial on inverse kinematic with ragdolls in the future, that's something I've really wanted to learn but can't find much info on, would be cool to see.
Me before dinner: *binge watching Dani's videos*
Me after dinner : *sees this video ...... Yaaay .....made my day xD*
"Hipity hopity, your code is now my property" - Famous quote by Dani. (And also what i'm doing rn).
Hi Dani! That was an awesome, clean, and simple tutorial! At 8:25, when you say this wasn't the best way to get the grapple point, I think a better way would be using the operator => to make a different public variable always equal to the private one. For example, at the top of your code, you could write
public Vector3 GrapplePoint => grapplePoint;
and change the specific values. Hope this helps anyone! :)
Edit: For the IsGrappling() boolean, instead of returning a value, you can use a get property. I think this is a bit cleaner.
public bool IsGrappling
{
get
{
return springJoint != null;
}
}
:)
@Marcy Wu Yep! Practice makes perfect!
I like the fact, that you write the code in the video, I would recommend writing with Dani, you will get a fell of it and you can write it on your own later :)
i was not able to edit the code, it kept saying open as, and then i got visual studio, how did you fix this?
With Brackeys being gone, i think you can help step in and fill that void. You've got a thing for this tutorial business. I know i definitely want to watch more!
exactly bro and in some parts When I mean some I mean some his style was like Brackeys which I kind of liked BTW He is our hope when Brackeys is gone
as you were saying
as you were saying
as you were saying
as you were saying
who came here thinking that dani uploaded something here?
*yes we are desperate*
Brackeys and Dani give me motivation to make games
*and very good tutorials
0:00 to 1:39 : i can actually understand this
1:40 to 6:30 : i like your funny words magic man
Just learn it
Me: finds a channel were Dani posts tutorials
Danis tutorials: 10 months ago
Me:😢
i cant wait for the next tutorial
You wish
@@ethanakz7495 only been 3 years since tutorial and 2 whole years since last real video and 7 months since any activity online in any such way
@@HZMTWasTaken i remember him saying on discord or commenting somewhere on yt saying hes 90% done with the new video, and his last post on twitter was back in october about the new unity policies or whatever idk what it really is
Please continue the tutorials. You inspire me to make games....
Dani: Doing a tutorial
Starters: İ need to watch and learn
Boners: Hipidy Hopidiy your code is my property
sa
@@user-mu2fu6oy5n as
@@user-mu2fu6oy5n ss
hehe code go BRRRR
uh ok
daddy dani when will the wallrunning tutorial come out? 🤔
yes
yes
Yes
We need that *t h i c c* tutorial
Uhm.. is 2074 too early?
i always like the way Dani talk in his tutorial vids way more than his speaking in his main channel
you probably will not hear it again
@@remus6846
but i hear it twice bc of his two tutorials
lol
this is the most active channel on youtube!!
Wait, "See you in half a year!" *5 months ago*
There's only one month left till the wallrunning tutorial boners!
I was here before 5 months
Alright new tutorial
Alright new tutorial
Alright new tutorial
yaaaay!...............................
when he said "I will do the next tutorial in half a year later" he really meant it.
I like how this channel reach 100k with only 3 videos
Finally a video of dani where he doesnt scream "milk, thicc and you dont know what karlson is" in the mic every few seconds
Me trying to follow
Dani: I am SPEED!
:D
*_spid_*
0.5
Still missing the tutorial on unity’s particle system😢
Ye😢
Ye😢
Ye😢
Ye😢
Ye😢
i actually like DanisTutorials he gives me the motivation to play games
Really works!! Best tutorial for Gun in Unity.
Create Unity Particaly System tutorial
Dani: *uploads tutorials of things from karlson*
The community bouta remake the steam version before its out: I'm about to do whats called a pro gamer move
No worries Dani, we are still here!
Really good tutorial!
Best upload squedual in the world
Physics makes me go: *Y E S*
thanks for the tutorial i know you wouldn't let me like this (on discord)
next: the ragdoll!!
Man can't wait for part 3 :)
People want waiting for dani to come back. While im over here still waiting for DanisTutorials to come back
Dani will teach us how to make the complete karlson before it actually releases.
0:31 when u dislike ur own video
Dani tutorial will be in my heart....
Soo good tutorials thx very much
Dani: makes a tutorial on grappling gun,
me: copies grappling gun into my own game just so i can be good at Karlson on day 1
Dani: See you guys in half a year
Me 7 months later: LIAR
that do be sad doe
Our lord and savoir is here thick dani
ME IN 9 MONTHS:why are we still here ? just to sufer
nine months later...
Me 10 months later: LIAR
you are really good at doing tutorials =-)
It has been 3 years we need more tutorials Dani
You should teach us how you coded AI for the enemies. Just a suggestion.....
yep
ai is pretty easy ngl
@@mgaFatBtch please tell me how to code with ai bro
@@mgaFatBtch depends on what ai
Just bake a Navmesh to your map and have the "set destination" for the enemy with the agent component be your player. Just search up Navmesh tutorials for the code.
Instructions unclear, accidentally made a Spider-Man game.
This is my idea XD
Dude, of course it won’t be the same as the karlson game, The grappling gun is awesome and you can change it and modify it by yourself. I think dani would be the greatest next Brackeys if he had more confidence
Instructions unclear, accidentally made a ham and cheese sandwich
@@gabrielsanchez8408 What are you on?
@@gabrielsanchez8408 its a joke lol cant you tell
can't wait for the next yearly tutorial
best tutorials on youtube
So I uh, did what Dani told me too do since I am using a character controller and to implement that simply make a variable for your character controller then in the StartGrapple function, under the Raycast if statement, insert characterController.enabled = false; and under StopGrapple, insert characterController.enabled = true; *I'm still experimenting in this and make sure your player has a rigidbody attached and also has gravity to off I guess*
thank u but insert what under StopGrapple
Cool tutorial as usual.
Have wishlisted the game and can't wait for it to come out.
Que : Will the game have an map editor?
Y E S a T H I C C one
Yeah thats the plan
When the world needed him the most, he never came back.
im on my first year first sem of computer engineering, and finally i can uderstand one or two words of this video. now , i crave more tutorial than milk.
When my gun rotates, it gets *T H I C C*
Pls help
Edit: I fixed it
How?
1st anniversary of the tutorial video is almost hear in 20 days
The next tutoriel is in 2077
Thankyou Dani you are Awesome
thanks dani very cool!
Best tutorial channel! yeah, sure.
Can you make post processing tutorial too? you always use that to make milky games
Thanks mate, and sure
@@DanisTutorials Dude your code is just messed up. You kill all the dependencies, every class must have its own dependency. Giving script references with drag and drop can cause many many problems. And you should avoid singletons either. Idk.. Working code doesn't mean it's a good code.
@@Mihyaz6 If something is stupid, but it works, then it's not stupid.
@@simonnt Hell no. Readability, maintability, optimization, memory etc.. If you think like that you would never be a good coder.
@@Mihyaz6 I'm not coding, but i'm about to start one day. That was joke btw.
Wow your character is even cooler then James Bond 😂😂
t h a n
Nonexistent you Laie you will blouses 👚 nevertheless be goode than oo7
@@beebeejelly3535 wtf are you ok bro
@@garvitsingh9113I said oo7! Is the best
@@beebeejelly3535 lol
dani being so focused, scares me
we need that yearly tutorials
Me: wait why can't i see the line renderer?
Me 30 minutes later: so apparently default-line is *INVISIBLE*