Unity 2020 Tutorial: SIMPLE Dashing in 3D [w/ 'Character Controller' Component]

preview_player
Показать описание

This video, i will show you the simplest way to to Dash in a 3D game using Unity 2020. I will be using the Character Controller component to perform the dash since there are some videos out there that haven't covered that. Enjoy :)

Follow my Socials:
Discord DM: vinnydev
Рекомендации по теме
Комментарии
Автор

Others = 20 minutes: Didnt understand anything
Vubi = 2 minutes: So easy and simple to understand
Morale: Thank you lol

alayafranks
Автор

thanks for the tutorial! for anyone who doesn't use the 3rd person controller script can use:

while(Time.time < startTime + dashTime)
{
* dashSpeed);

yield return null;
}

lamnguyentung
Автор

Dang dude, fast, straight to the point and explained exactly how i wanted it to be. I'm gonna make it a little less op since you can spam the key but still. Very good tutorial.

MetaPikachu
Автор

For anyone looking to do this for an FPS this is what I've done:

public class DashingSystem : MonoBehaviour
{
CharacterController CharacterController;

[SerializeField] private float dashSpeed = 20f;
[SerializeField] private float dashTime = 1.5f;

[SerializeField] private float TBWDashes = 3.5f;
float WaitTime;
private void Start()
{
CharacterController =
WaitTime = TBWDashes;
}

private void Update()
{
WaitTime -= Time.time;

if && WaitTime <= 0)
{
StartCoroutine(Dash());
}
}
IEnumerator Dash()
{

float startTime = Time.time;

while(Time.time < startTime + dashTime)
{

float x = Input.GetAxis("Horizontal");
float z = Input.GetAxis("Vertical");

Vector3 moveDir = transform.right * x + transform.forward * z;
* dashSpeed * Time.deltaTime);

WaitTime = TBWDashes;

yield return null;
}
}
}

mysteriousworlds
Автор

This is a really good base to build off of thank you spent about 4 hours trying to come up with a effect dash method

cool_gamertag
Автор

man, thank you so much! Been looking for tyhis for so long!

Husmanmusic
Автор

Great tutorial! I am making a 2d game using a lot of the new unity tools and had to work in your methods into my function. It works beautifully in the end. It's crazy, trying to lerp a character from one position to the other is so easy with a rigidbody, doing it with a character controller should of been just as simple. With your tutorial, it was! Now my characters can move around when attacking, and I think I can apply this method to make diagonal attacks! Thanks again!

tamerxero
Автор

Literally exactly what i was looking for, thank you very much, keep it up

ThendCow
Автор

Really good guide man, keep up the good work!

eclipsium
Автор

Although I don't speak English, your video saved me from a bad situation, thank you!

animk.o
Автор

*** Hey guys, if you don't have brackey's script and are using your own *** where you start the routine with the input, pass in so it'll look like -- -- and the enumerator, -- IEnumerator Dash(Vector3 direction) -- now pass " direction " into where he has movDir. :)

enurshadrs
Автор

This was exactly what I was looking for and it was to the point and well spoken, thank you

Failfer
Автор

that was so amazing and timesaving not having to watch a 10 minute tutorial thank you so much!

Dfclife
Автор

thanks ! still usefull
If you want to implement it directly on the ThirdPersonController.cs ( standard asset on unity ) you can do this :

{
float startTime = Time.time;
Vector3 targetDirection = Quaternion.Euler(0.0f, _targetRotation, 0.0f) * Vector3.forward;
while(Time.time < startTime + dashTime)
{
* dashSpeed * Time.deltaTime);
yield return null;
}
}

Messy, but it's working !

Brundle
Автор

Thank you So much, this really Helped! You are Awesome!

GameDevGigachads
Автор

I'm using Brackeys first-person movement, and I have absolutely no idea how to fix the move.Dir without breaking the whole script. Can you please help me?

bananashotgun
Автор

Great guide, thank you very much! Question, is there a way to make this have a delay between dashes ?

Kaidan
Автор

this video was very useful, keep it up

StephHami
Автор

now that what i call a Great Tutorial !

الصديقفيوقتالضيق
Автор

it was so fast, amazing, thanks man

regys