I love how he just gives you the scripts but then goes on for more than five minutes explaining it, awesome plus for anyone lazy (like me). Really cool!
Yo guys can u please help, i did all of dani's instructions correctly but when i try to look up, instead i look down, and vice versa. Also when i press w, a, s or d they make me walk the total opposite direction. Any help with this is totally appreciated
yep. if you follow brackeys: oh yeah I understand this well now! when you follow dani: (generated with autocorrect suggestions ) 400gr ei is a great way to get and use those tools to help you find the best gpu UNDER 200 is a gt 1030 that is a good 5 and a great idea and a great idea of what to use
one thing that would make this 10X better sprinting but thats simple (if pressing shift set movement speed to sprint speed otherwise movement speed) apart from that, it's amazing good luck on Karlson
you also need to check if the player isn't in the air, otherwise that would be very weird (sprinting mid air) you just gotta add the grounded bool to your if statement
I wish he would upload more offend, but since I'm not some brain dead OJ drinker, I understand how hard it is to create content and just wants more from him. Keep up the good work Dani! oh, and merry Christmas
A bit late but dont do this, create a layer called Ground if you havent already then take the platform your standing on and layer it ground. Thats what dani does he just doesnt show it.
I don’t even make games and won’t be using this tutorial but I love your content so I watch it anyway. Keep up the good work! Please make this into a VR game it will be so sick!
Hey, thanks for the tutorial. I really love the movement in this game. One suggestion I can give is to use more realistic weights and dimensions to get expected results and just to avoid confusing yourself once the code gets complex. For example, you increased the gravity and used a mass of 1.5kg on the player because the jump was too big instead of increasing the mass to a more realistic value such as 65kg. Now you have a gravity that you can find no reference to and compare to. Which also means you will have to adjust the weight of all your rigid body's without any reference to real life to emulate a similar behavior to the actual world.
actually this is a problem that i suffer too and noticed in this tutorial that i need fix hehe... i just need absord what is good here and put on my own code...
For all those who's scripts have compile errors, Just make sure you are using Unity version 2019. Fixed all my problems. Also, if you are falling through the map. make sure you have box colliders, mesh filter (with the object selected) and mesh renderer. If you import your own object from blender or something, they wont have those by default most likely. Hope this helps.
I think putting the NoFriction physics material on the player and setting the friction combine to minimum achieves the same effect as putting the physics material on every object
@@charcoalwill kkkkkkkk verdade, mano deixa eu te perguntar uma coisa, voce conseguiu fazer o tutorial? pra mim ficou meio zoado e de vez em quando eu to andando e sou jogado pra outra direção, ja vi os comentarios e um monte de gente teve o mesmo problema, pra tu deu certo?
This tutorial is so straight forward, even for a rookie like me who literally has barely any unity knowledge this was still really easy to follow along with! 5 star yelp review
To get velocity relative to look direction you could just do this: camera.transfrom.rotation * camera.transform.TransformDirection(rigidbody.velocity) And to avoid jitteriness at 4:55 you could just replace Update with LateUpdate. Also at 6:55 you add gravity with ForceMode.Force but gravity does not take mass into acount so you should've used ForceMode.Acceleration but notice that both these modes already multiply the value you pass in by Time.deltaTime so you don't have to multiply them once more.
Make sure you attached the main camera to the empty camera object, and if so make sure you set the camera object as the camera in the player camera follow script
could you also make a tutorial, for a 2d stickman, since I’m kind of learning unity and wold like to have a Skript like that, so I would know how (or you can’t make it(jk I know off the sticks since 3rd video));
I got an error (4), could someone help me please? - Assets/PlayerMovement.cs(161,20): error CS1644: Feature `nameof operator' cannot be used because it is not part of the C# 4.0 language specification - Assets/PlayerMovement.cs(247,35): error CS1061: Type `UnityEngine.Collision' does not contain a definition for `contactCount' and no extension method `contactCount' of type `UnityEngine.Collision' could be found. Are you missing an assembly reference? - Assets/PlayerMovement.cs(254,30): error CS1644: Feature `nameof operator' cannot be used because it is not part of the C# 4.0 language specification - Assets/PlayerMovement.cs(262,20): error CS1644: Feature `nameof operator' cannot be used because it is not part of the C# 4.0 language specification
Zebax 22 I also had the same problem but I have been able to fix one of them. Just go to edit, project settings, player, other settings, and under configuration you will see, “scripting runtime version” and change it from .NET 3.5 Equivalent to .NET 4x Equivalent. Make sure to save before doing this. As for the other problem I am not sure.
Can you make a tutorial about how you created the ragdoll stickman from off the sticks (with movement and this stuff), really appriciated if you will :)
Hey Dani love your videos, I have been wondering how to change your taskbar to the way you have. It is a nice colour and I have not found out anywhere online how to change it like that. Thank you a lot.
please do more tutorials, i'm actually interested in making games with Unity for PC i'd like you to make a tutorial about how to implement health, weapons and so on subbed :)
Here's something I don't understand about the movement code, maybe someone can clarify: in the movement script, Dani has the FindVelRelativeToLook() method. Why? You could easily just... rotate the player around the Y axis and move the player relative to itself instead of doing complicated angle math based on where you're looking and how you're moving? Am I missing something?
Well the FindVelRelativeToLook is actually used for countermovement, but there is a better way of doing it. you can just say: Vector3 FindVelRelativeToLook = orientation.InverseTransformDirection(rb.velocity);
I'm making a similar rigidbody based movement system, and I'm wondering something: how do you prevent the player from moving through walls? I've set up my movement and such, but when I move into walls I just pass through them if I move into them fast enough. If anyone happens to see this, can you please offer some advice? Thanks for your time.
where did you learn all of this I cant understand most of the things in the script and need a more in-depth tutorial? love your videos, you're the reason I started coding
sorry i dont know how to make tutorials but whatever here you go
smash subscribe or i smash you
but i already smash subscribe what i do now? ._.
Smashers
DanisTutorials
Can you do a tutorial on starting in unity?
IMA MAKE MILK ON ROBLOX STUDIO
HEY DANI I CAN DESIGN A WEBSITE FOR YOU FOR FREE let me know if you are interested....btw got milk? 🥛
me waiting for wallrun tutorial:
"Its been 84 years."
@Kush Thanki ooof
Cyberpunk 2077 released before the wallrun tutorial which is sad☹️☹️☹️
Please dani release it
Rip
its been 69 years sucker
I wish Dani was my CS professor
At least I can be your daddy
@@DanisTutorials WTF BRO
@@DanisTutorials sugar dani 🤣😂
what the fuck
@Cats and cat things pfft, Dani Obviously... 🙄
I love how he just gives you the scripts but then goes on for more than five minutes explaining it, awesome plus for anyone lazy (like me). Really cool!
Unity actually suggested this video in their getting started with 3D playlist
*OH NO THAY ON TO US*
@@panbot2203 lol
oh fuk
As a wise man once said: "Hippity hoppity your code is my property" (the wise man is Dani).
yes we took his code
how dare you use my own spells against me potter
Ho shiz Sherlock
ruclips.net/video/6Veg07TSN1I/видео.html
Yo guys can u please help, i did all of dani's instructions correctly but when i try to look up, instead i look down, and vice versa. Also when i press w, a, s or d they make me walk the total opposite direction. Any help with this is totally appreciated
Why don't you make a VR game (OR YOU CANT)
Yes'nt
we need to spam this
Trigger #activated :D
Yes
"so this asshole challenged me to make VR game..."
I adapted this for my 3rd person game with cinemachine and works amazing, thanks man! Good luck on your journey to become the ultimate memer game dev!
Brackeys:Shows us the code and tell us what it means so we can read it.
Dani:so uhh, download the script from this link
yep.
if you follow brackeys:
oh yeah I understand this well now!
when you follow dani:
(generated with autocorrect suggestions )
400gr ei is a great way to get and use those tools to help you find the best gpu UNDER 200 is a gt 1030 that is a good 5 and a great idea and a great idea of what to use
Brackeys one is annoying to follow, danis isn’t
How do you download it?
@@Maximusmaxamin ctrl+c ctrl+v
@@boldsans1070 brackeys tutorials actually let u learn from it, he explains it carefully in understandable terms.
dani didnt even show the code
Finally someone that can make good unity tutorials with straight to the point explana...
Brackeys: Am i a joke to you?
he made that game by watching his tutorials
so....
yes Brackeys, Dani did it better,
@@zeamproduction429 I have to disagree
Brackeys and Dani make eaqualy good tutorials
Don’t get me wrong, brack is a good help, but dani makes jumps and cuts so shit goes way faster and simpler
@@SamiTheAnxiousBean I must say that Dani's tutorials makes it more fun and less serious.
Why you don't try make a tutorial (or you can't do that)
uwu
@@DanisTutorials Ur "Balls?" Tutorial n "Farty Rocket" tutorial?
N how exactly you optimized it?
Could u bring it here?.......
@@DanisTutorials nowo youwu
@@DanisTutorials owo
@@DanisTutorials ORAORAORAORAORAORA
one thing that would make this 10X better
sprinting
but thats simple (if pressing shift set movement speed to sprint speed otherwise movement speed)
apart from that, it's amazing
good luck on Karlson
how can i add sprinting 😅
you also need to check if the player isn't in the air, otherwise that would be very weird (sprinting mid air)
you just gotta add the grounded bool to your if statement
please make a tutorial about wall running i searched every were in youtube and i cant find the perfect one, like so dani can see
@@loco5169 but wallrunning sometimes makes you go up... so i think it would help if you add upward force
@@loco5169 or you could use a SphereCast which is basically a raycast but in the shape of a sphere
@@undefinedchannel9916 NERDS HAVE ENTERED THE CHAT
@@mufradr nah you are just too dumb to understand our big brains
Q U A C K E R S ur right
Definetly do more tutorials, they really help a lot of people (including myself)
I agree.
I spent 5 hours trying to change my terrain texture to sand so I definitely need some tutorials
I agree
Me(new unity user): looking for tutorial for movement takes 7hrs
Dani: “here take this script”
Me: oh thanks
Comfy Noodles how do you download the script
@Grant Laporte If you don't even know how to download from GitHub, I'm pretty sure you won't be able to code.
@Grant Laporte Nice.
@Grant Laporte how do u download the move camera
@@iiskruzg4136 Sign Up thats what i did
Why don’t you make a wall running tutorial (or you can’t do that?)
i dont think he can
ruclips.net/video/Ryi9JxbMCFM/видео.html not by dani but similiar concepts
@@yeetpizza7452 does it work with dani's code?
I wish it was that simple
I really do
@@pramudia9999 yes I used Dani's code
if someones here on october it's because they didn't die of depression when brackyes went away
yes
Yes
yes
yes
hey before killing us hear DANI IS STILL ALIVE AND NOT CREATING TUTORIALS **************
Other tutorials: spends the first 2 minutes talking about what they'rs gonna do and how they'll do it.
Dani: literally starts 14 seconds in.
Wow, I’m impressed with the effort you put into the second half of the video...
:D
I wish he would upload more offend, but since I'm not some brain dead OJ drinker, I understand how hard it is to create content and just wants more from him. Keep up the good work Dani! oh, and merry Christmas
doesnt he basically NEVER uploads on this channel?
dani: makes a tutorial on movement
me: is confused on how he placed boxes
me too. mee too.
Same
lol
@@garrybogdanho it was a joke dude
@@garrybogdanho lol k im probs not gonna do it so blame someone else
Dani:”Good morning GAMER”
Me:”thank you kind sir”
gaymer
I like the fact that he used the old version of his profile pic of the original channel
Yes :)
You know what i like
-/tutorials/-
Ikr
I mean he hasn't uploaded on this channel in a while. Maybe he forgot it exists lol. Or maybe he just doesn't have anything to upload here.
@@Eh-cv5tt exactly I am waiting for a new video
Imma be 110% with you, I had no Idea you had a tutorial channel, I've been just watching your videos on repeat to figure out how you did stuff 😅
to anyone confused about the jump functionality: go into the player movement script, find grounded and select it.
yeah but how about the cooldown not working
Boooring shut up neeeerd (tried to use Dani meme but failed 😐)
A bit late but dont do this, create a layer called Ground if you havent already then take the platform your standing on and layer it ground. Thats what dani does he just doesnt show it.
@@eclipse_ai he says that in the vid
Dani: "GOOD MORNING GAMERS"
Me: "Its 6pm ._."
Bruh that's the exact time I am watching this too xD
he said Good morning because he maybe recorded this in the morning
@@redstonecircuitoffunmc913 well *duh*
@@lemonwater9687 xD
GOOOD MORNING VIETNAAAM!
I don’t even make games and won’t be using this tutorial but I love your content so I watch it anyway. Keep up the good work! Please make this into a VR game it will be so sick!
I Can Agree
The movement makes me go yes
*y e s*
Dani: Gooood moorning gamers
PewDiePie watchers: We know what you did there.
wrong he said good morning gamer instead of gamers
*w a t c h e r s*
WALLRUNNING PLEASE!! like so dani can see :D
I won't pretend I know how to do it, but in his vid on making Karlson 3D he said he made the character stuck to the wall
3:36 nO
This is actually the best tutorial I've every watched (so far)
yes its sad he is not active on this channel
if you want to add a sprinting function to the movement system, i got it here:
using System;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
//Assingables
public Transform playerCam;
public Transform orientation;
//Other
private Rigidbody rb;
//Rotation and look
private float xRotation;
private float sensitivity = 50f;
private float sensMultiplier = 1f;
//Movement
public float moveSpeed = 4500;
public float maxSpeed = 20;
public bool grounded;
public LayerMask whatIsGround;
public float counterMovement = 0.175f;
private float threshold = 0.01f;
public float maxSlopeAngle = 35f;
//Crouch & Slide
private Vector3 crouchScale = new Vector3(1, 0.5f, 1);
private Vector3 playerScale;
public float slideForce = 400;
public float slideCounterMovement = 0.2f;
//Jumping
private bool readyToJump = true;
private float jumpCooldown = 0.25f;
public float jumpForce = 550f;
//Sprinting
private bool readyToSprint = true;
//Input
float x, y;
bool jumping, sprinting, crouching;
//Sliding
private Vector3 normalVector = Vector3.up;
private Vector3 wallNormalVector;
void Awake()
{
rb = GetComponent();
}
void Start()
{
playerScale = transform.localScale;
Cursor.lockState = CursorLockMode.Locked;
Cursor.visible = false;
}
private void FixedUpdate()
{
Movement();
}
private void Update()
{
MyInput();
Look();
}
/// Find user input
private void MyInput()
{
x = Input.GetAxisRaw("Horizontal");
y = Input.GetAxisRaw("Vertical");
jumping = Input.GetButton("Jump");
crouching = Input.GetKey(KeyCode.LeftControl);
sprinting = Input.GetKey(KeyCode.LeftShift);
//Sprinting
if (Input.GetKeyDown(KeyCode.LeftShift))
Sprint();
if (Input.GetKeyUp(KeyCode.LeftShift))
StopSprint();
//Crouching
if (Input.GetKeyDown(KeyCode.LeftControl))
StartCrouch();
if (Input.GetKeyUp(KeyCode.LeftControl))
StopCrouch();
}
private void StartCrouch()
{
transform.localScale = crouchScale;
transform.position = new Vector3(transform.position.x, transform.position.y - 0.5f, transform.position.z);
if (rb.velocity.magnitude > 0.5f)
{
if (grounded)
{
rb.AddForce(orientation.transform.forward * slideForce);
}
}
}
private void StopCrouch()
{
transform.localScale = playerScale;
transform.position = new Vector3(transform.position.x, transform.position.y + 0.5f, transform.position.z);
}
private void Movement()
{
//Extra gravity
rb.AddForce(Vector3.down * Time.deltaTime * 10);
//Find actual velocity relative to where player is looking
Vector2 mag = FindVelRelativeToLook();
float xMag = mag.x, yMag = mag.y;
//Counteract sliding and sloppy movement
CounterMovement(x, y, mag);
//If holding jump && ready to jump, then jump
if (readyToJump && jumping) Jump();
//If holding sprint && ready to sprint, then sprint
if (readyToSprint && sprinting) Sprint();
//Set max speed
float maxSpeed = this.maxSpeed;
//If sliding down a ramp, add force down so player stays grounded and also builds speed
if (crouching && grounded && readyToJump)
{
rb.AddForce(Vector3.down * Time.deltaTime * 3000);
return;
}
//If speed is larger than maxspeed, cancel out the input so you don't go over max speed
if (x > 0 && xMag > maxSpeed) x = 0;
if (x < 0 && xMag < -maxSpeed) x = 0;
if (y > 0 && yMag > maxSpeed) y = 0;
if (y < 0 && yMag < -maxSpeed) y = 0;
//Some multipliers
float multiplier = 1f, multiplierV = 1f;
// Movement in air
if (!grounded)
{
multiplier = 0.5f;
multiplierV = 0.5f;
}
// Movement while sliding
if (grounded && crouching) multiplierV = 0f;
//Apply forces to move player
rb.AddForce(orientation.transform.forward * y * moveSpeed * Time.deltaTime * multiplier * multiplierV);
rb.AddForce(orientation.transform.right * x * moveSpeed * Time.deltaTime * multiplier);
}
private void Jump()
{
if (grounded && readyToJump)
{
readyToJump = false;
//Add jump forces
rb.AddForce(Vector2.up * jumpForce * 1.5f);
rb.AddForce(normalVector * jumpForce * 0.5f);
//If jumping while falling, reset y velocity.
Vector3 vel = rb.velocity;
if (rb.velocity.y < 0.5f)
rb.velocity = new Vector3(vel.x, 0, vel.z);
else if (rb.velocity.y > 0)
rb.velocity = new Vector3(vel.x, vel.y / 2, vel.z);
Invoke(nameof(ResetJump), jumpCooldown);
}
}
private void ResetJump()
{
readyToJump = true;
}
private void Sprint()
{
if (grounded && readyToSprint)
{
readyToSprint = false;
//Apply sprint to player
maxSpeed = 9;
}
}
private void StopSprint()
{
maxSpeed = 5;
readyToSprint = true;
}
private float desiredX;
private void Look()
{
float mouseX = Input.GetAxis("Mouse X") * sensitivity * Time.fixedDeltaTime * sensMultiplier;
float mouseY = Input.GetAxis("Mouse Y") * sensitivity * Time.fixedDeltaTime * sensMultiplier;
//Find current look rotation
Vector3 rot = playerCam.transform.localRotation.eulerAngles;
desiredX = rot.y + mouseX;
//Rotate, and also make sure we dont over- or under-rotate past +-90 degrees.
xRotation -= mouseY;
xRotation = Mathf.Clamp(xRotation, -90f, 90f);
//Perform the rotations
playerCam.transform.localRotation = Quaternion.Euler(xRotation, desiredX, 0);
orientation.transform.localRotation = Quaternion.Euler(0, desiredX, 0);
}
private void CounterMovement(float x, float y, Vector2 mag)
{
if (!grounded || jumping) return;
//Slow down sliding
if (crouching)
{
rb.AddForce(moveSpeed * Time.deltaTime * -rb.velocity.normalized * slideCounterMovement);
return;
}
//Counter movement
if (Math.Abs(mag.x) > threshold && Math.Abs(x) < 0.05f || (mag.x < -threshold && x > 0) || (mag.x > threshold && x < 0))
{
rb.AddForce(moveSpeed * orientation.transform.right * Time.deltaTime * -mag.x * counterMovement);
}
if (Math.Abs(mag.y) > threshold && Math.Abs(y) < 0.05f || (mag.y < -threshold && y > 0) || (mag.y > threshold && y < 0))
{
rb.AddForce(moveSpeed * orientation.transform.forward * Time.deltaTime * -mag.y * counterMovement);
}
//Limit diagonal running. This will also cause a full stop if sliding fast and un-crouching.
if (Mathf.Sqrt((Mathf.Pow(rb.velocity.x, 2) + Mathf.Pow(rb.velocity.z, 2))) > maxSpeed)
{
float fallspeed = rb.velocity.y;
Vector3 n = rb.velocity.normalized * maxSpeed;
rb.velocity = new Vector3(n.x, fallspeed, n.z);
}
}
/// Find the velocity relative to where the player is looking
/// Useful for vectors calculations regarding movement and limiting movement
public Vector2 FindVelRelativeToLook()
{
float lookAngle = orientation.transform.eulerAngles.y;
float moveAngle = Mathf.Atan2(rb.velocity.x, rb.velocity.z) * Mathf.Rad2Deg;
float u = Mathf.DeltaAngle(lookAngle, moveAngle);
float v = 90 - u;
float magnitue = rb.velocity.magnitude;
float yMag = magnitue * Mathf.Cos(u * Mathf.Deg2Rad);
float xMag = magnitue * Mathf.Cos(v * Mathf.Deg2Rad);
return new Vector2(xMag, yMag);
}
private bool IsFloor(Vector3 v)
{
float angle = Vector3.Angle(Vector3.up, v);
return angle < maxSlopeAngle;
}
private bool cancellingGrounded;
/// Handle ground detection
private void OnCollisionStay(Collision other)
{
//Make sure we are only checking for walkable layers
int layer = other.gameObject.layer;
if (whatIsGround != (whatIsGround | (1
cool
thats a lot of code
@@afterglow7984 i know right
OMG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WTF THAT'S MORE THAN 99 MISTAKES
but it's cool.
thx
Please upload more on this channel it helps a lot also some 2d and pixel games too and thanks bro
TAG THIS ONE UP EVERYONE! :D
Hey, thanks for the tutorial. I really love the movement in this game.
One suggestion I can give is to use more realistic weights and dimensions to get expected results and just to avoid confusing yourself once the code gets complex.
For example, you increased the gravity and used a mass of 1.5kg on the player because the jump was too big instead of increasing the mass to a more realistic value such as 65kg. Now you have a gravity that you can find no reference to and compare to. Which also means you will have to adjust the weight of all your rigid body's without any reference to real life to emulate a similar behavior to the actual world.
thanks
actually this is a problem that i suffer too and noticed in this tutorial that i need fix hehe... i just need absord what is good here and put on my own code...
Dude just got included in a playlist made by unity
Why don't you make a 4D game (or you can't)
or 5D (or you can't)?
Pleas send me a Foto from youre dimension
@@vitkozel Pleas you too
@@regenjacob ok no problem
Brackeys can do it
Hey, you should make a tutorial on how you made the grappling hook, it would help a lot of people and also me.
Done
he did it
The funny thing is that I figured out the movement script myself but the camera is what got me stuck. Thanks for letting us use ur scripts
The player movement have so many errors. Can you send me your code please?
Veight V8 yeah, gimme a sec
Veight V8 how should I send it to you? Just by typing it all?
@@demhomies9447 yes.
@@veight_
Dude
You know there's someone out there who finds out this tutorial useful
For all those who's scripts have compile errors, Just make sure you are using Unity version 2019. Fixed all my problems.
Also, if you are falling through the map. make sure you have box colliders, mesh filter (with the object selected) and mesh renderer. If you import your own object from blender or something, they wont have those by default most likely. Hope this helps.
Soooo...i am 13 years old and i am gonna begin my coding creer and i am so thankfull that your here just keep the good work :)
Same
same :D
Same =]
hey man i am telling you do not give up no matter what ok
And I'm also 13 years and I'm making a game
_Dani proceeds to make a tutorial channel_
*Dani proceeds to tell everyone he doesn’t know how to make tutorials *
I've yoinked this code more than 50 times since past 3 years
O U R C O D E
Evolution of my projects:
My first game
3d test
2d test
Test
Untitled project
Unity is hell
"Evoloution"
Damn this is so true for me as well
@@arrrnora *Evolution
facts mine are similar to this too, coding makes me go insane (not in a good way)
Woah that's way too relatable.
Why don't you make a tut for total begginers,like for us who don't even know how to use unity ? :D
(or he cant)
BRAKEY.
Lol
Brackeys
@@Mushe94 LOL
Nice! Looking forward to that wall-running tutorial
*Last Online 6 Months Ago*
I think putting the NoFriction physics material on the player and setting the friction combine to minimum achieves the same effect as putting the physics material on every object
I am sad he didn't say "And, can I just say that he look *T H I C C* " when he created the capsule...
same
its not and, can i just say that he look thicc its "is it just me or karlson be lookin kinda *T H I C C* "
* sad capsule nioses *
is it me or foxlynn face looking *T H I C C*
I think he's not our Dani.
Hey Dani! Do a grappler tutorial pls ^^
yes dani
There are some on yt too
good prediction mate
dani sounds way different when hes educational
Ok not gonna lie, this actually helped a ton in my current game I'm working on!
Capsule : Cringe
BeAn : THICC
Dani : idk MiLk?
Hotel : Trivago
yes
hotel trivago? tu é brasileiro? kkkk
@@charcoalwill kkkkkkkk verdade, mano deixa eu te perguntar uma coisa, voce conseguiu fazer o tutorial? pra mim ficou meio zoado e de vez em quando eu to andando e sou jogado pra outra direção, ja vi os comentarios e um monte de gente teve o mesmo problema, pra tu deu certo?
Hotel trivago is the funniest thing i see on every youtube video coment section.
dani = stronk bone (lot of milk)
instruction unclear: my character fly
Turn on gravity under rigid body
@GI Dev Turn on gravity under rigid body
Hahaha
@@TheXcizer I turned on Rigid-Body Gravity it still no work, the minute it starts the character flys away.
Is this a joke or a serious problem
amazing tutorial ngl, straight to the point and very simple
Here is a good one ---> ruclips.net/video/Nx73K5qiTPc/видео.html
im making a unity project for fun and remembered dani got a tutorial channel, and it worked
This tutorial is so straight forward, even for a rookie like me who literally has barely any unity knowledge this was still really easy to follow along with!
5 star yelp review
yes it was easy but thats because you weren't the one CODING then ur opinion on unity will drastically change
but yes 5 star yelp review
I can't do it I guess i have the brain of a 4 year old
Dani please make a VR game about drinking as much milk as you can in a minute it will be great
Bruh that's a terrible idea
Dami:Tecnical problems
Me you jokeing right
Me waiting for 2 years to find another freaking Danis tutorial upload
To get velocity relative to look direction you could just do this:
camera.transfrom.rotation * camera.transform.TransformDirection(rigidbody.velocity)
And to avoid jitteriness at 4:55 you could just replace Update with LateUpdate.
Also at 6:55 you add gravity with ForceMode.Force but gravity does not take mass into acount so you should've used ForceMode.Acceleration but notice that both these modes already multiply the value you pass in by Time.deltaTime so you don't have to multiply them once more.
🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓🤓
U have anything that can make my gun that is childed to the camera not stretch with the camera?
@@Charduza Make aother camera for the weapon. There will be one weapon for the environment and everything, and one for the gun.
I swear you taught me better than brackeys
you didn't say that
@@maniainteractive Sorry but yes, cause brackeys melee tutorial isn't even a quarter of this
Day 393: still waiting on Dani's next tutorial :(
true
true
Dani: i dont know how to explain things
Me: this is the only tutorial i could find that worked.
Can you do a ragdoll phisics tutorial, because ragdoll make me ya
Yes
Please do this NO ONE EXPLAINS THIS
@@kieranparanjpe6462 THEN START LEARNING THIS, AND EXPLAINS THIS TO OTHER PEEOPELES
yes*
Can we get some F in chats so dani can bring back dani's tutorials
F
Thank you @@xmasteremilio6404 , Very cool 👍
F
0:41 AWW MANN
Greetings from Poland 😀🇵🇱🇵🇱🇵🇱
If dani ever comes back from the dead he better make more tutorials
Very cool tutorial. I really like it.
I just wanna annoy Dani :v
*What browser do u use???????*
chrome coz its pinned and opened in background ***shrug*** idk
@@smartestsupeafterhomelander it’s a joke
@@nekksy8714 Even I told as a joke LMAO
G O O G L E C H R O M E
I'm having a bit of trouble as when I run the game the camera will not follow, I'm new to unity and id like some help
Make sure you attached the main camera to the empty camera object, and if so make sure you set the camera object as the camera in the player camera follow script
@@iequalzero716 hi yoda
@@tamlin434 Yoda Lego You To
@@iequalzero716 how
same here man
Dani : {High Volume} Oh, you don't know what Kalson is!!!!!!!!!!
Dani 2 : {High Volume} Orange Juice Crinch
Dani Tutorials : {Normal Volume}
could you also make a tutorial, for a 2d stickman, since I’m kind of learning unity and wold like to have a Skript like that, so I would know how
(or you can’t make it(jk I know off the sticks since 3rd video));
I got an error (4), could someone help me please?
- Assets/PlayerMovement.cs(161,20): error CS1644: Feature `nameof operator' cannot be used because it is not part of the C# 4.0 language specification
- Assets/PlayerMovement.cs(247,35): error CS1061: Type `UnityEngine.Collision' does not contain a definition for `contactCount' and no extension method `contactCount' of type `UnityEngine.Collision' could be found. Are you missing an assembly reference?
- Assets/PlayerMovement.cs(254,30): error CS1644: Feature `nameof operator' cannot be used because it is not part of the C# 4.0 language specification
- Assets/PlayerMovement.cs(262,20): error CS1644: Feature `nameof operator' cannot be used because it is not part of the C# 4.0 language specification
Zebax 22 I also had the same problem but I have been able to fix one of them. Just go to edit, project settings, player, other settings, and under configuration you will see, “scripting runtime version” and change it from .NET 3.5 Equivalent to .NET 4x Equivalent. Make sure to save before doing this. As for the other problem I am not sure.
@@meatburger6910 Thanks for the help!
We demand you to make a Vr Game!
(Not original comment just helping spamming and you should too)
no, you shouldn't spam
I dont acctualy have controllers for my VR so... lol
We demand you to make a Vr Game!
(Not original comment just helping spamming and you should too)
you're welcome
he just did xdddd
Me: hoping to learn sone code with dani
Dani: just copy and paste this into unity
same
but he explained a bit at the end
@@eragonstudios9847 true true
Can you make a tutorial about how you created the ragdoll stickman from off the sticks (with movement and this stuff), really appriciated if you will :)
Yeah, we need it!!
Hey Dani love your videos, I have been wondering how to change your taskbar to the way you have. It is a nice colour and I have not found out anywhere online how to change it like that.
Thank you a lot.
in window settings
@@ceylonpod thank you
Dani Everything i just perfect
But the player control script has alot of errors....
What Should i do?
Yes. I can't move forward or backwards without holding left or right. I can't jump or crouch and I can't slide, pls help uwu
@@mrcrazyderp6955 what does mean "uwu" ?
I dunno actually
I JUST REALIZED THERES A TUTORIAL FROM DANI THIS IS HOLY
When will we get tutorials like Guns from Karlson or Wall running
i think never
Why don't you make a unity's particle system toturial ? ( OR YOU CAN'T DO THAT ! )
Yessss
oh i see you got a nice taste sir.
Assalamualaikum arab Mario
I would talk in Arabic but I dont know Arabic even tho I live in an Arabic country Which is bahrain
@@smd9591 ok.
@ايمن خضير لول
please do more tutorials, i'm actually interested in making games with Unity for PC
i'd like you to make a tutorial about how to implement health, weapons and so on
subbed :)
i expected him to make the capsule thicc good job gamer
The player movement script dosnt work it says "feature `nameof operator` cannot be used becouse it is not part of the C# 4-0 language specification
Got the same issue.
Same
Same, Did you figure it out?
@@rohitrana2312idk yes if you have the same problem update unity to 2020 version. I had it on 2018 and it didnt work.
@@JustAspect22 Oh so it is because of the old version, I have 2017 version. Thanks, I will upgrade it to 2020 version :)
this makes me go yes
Here's something I don't understand about the movement code, maybe someone can clarify:
in the movement script, Dani has the FindVelRelativeToLook() method. Why? You could easily just... rotate the player around the Y axis and move the player relative to itself instead of doing complicated angle math based on where you're looking and how you're moving? Am I missing something?
Well the FindVelRelativeToLook is actually used for countermovement, but there is a better way of doing it. you can just say:
Vector3 FindVelRelativeToLook = orientation.InverseTransformDirection(rb.velocity);
@@Deoster oh, that makes a lot more sense-
No one will talk about the disappointment when he said capsule
We want BEAN
me: types exactly what is in the script
unity: 4 errors take it or leave it
If your still getting errors there's a git hub page
if you copy and paste there are no errors
@@jackpowell7906 what github Page?
In the description
Help me the player won’t rotate pls
there is three actually
I'm making a similar rigidbody based movement system, and I'm wondering something: how do you prevent the player from moving through walls? I've set up my movement and such, but when I move into walls I just pass through them if I move into them fast enough. If anyone happens to see this, can you please offer some advice? Thanks for your time.
rigidbody, collision detection continuous,hope be helpful
@@skybig9906 I've tried that, but it still doesn't work. Thanks though.
@@lesserlobster8336 i have the same problem
Did you set them as ground?
0:43 top 10 minecraft youtubers, who’ve SWORN
R.I.P DanisTutorials it is the best tutorial video ever
This makes me say yes
best tutorial ever 8 minutes and we done and i looked and it was half way through the vid when we was finished with the movement big thumb up
where did you learn all of this I cant understand most of the things in the script and need a more in-depth tutorial?
love your videos, you're the reason I started coding
try to learn from brackeys even if he left he has alot of amazing tuorials
Please make a off the sticks ragdoll tutorial
thank you dani for helping me pass my college class
Im gonna yoink your code as payback for you yoinking everyone else's code XD
Pls make a part 2 with wall running or how the guns works!!!!
Guns are easy to do just watch brackeys guns / reloading video
@@billblap2231 somehow I don't know how to use it from brakeys I don't understand anything
Can you make a 4d game, or you can’t
They actually gave karlson a youtube gaming page! good job