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
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 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
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 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
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.
@@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?
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
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
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.
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);
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 :)
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));
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.
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
Well, remove the Parent from the Main Camera. Reset the transform. Set it again as a children from the camera. (Reset the position from the cam(not main)) And i hope i helped youh. When not, dont wonder. I am just a dumbass. 0 IQ. NoThIng
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.
I decided to start making a game by using tutorials decided to start with Dani wanted movement from his game finished tutorial but i spent waaay too long messing with the movement having fun and then i lost motivation to continue today so all in all pretty productive today.
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
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..."
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
th-cam.com/video/6Veg07TSN1I/w-d-xo.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 wall running tutorial (or you can’t do that?)
i dont think he can
th-cam.com/video/Ryi9JxbMCFM/w-d-xo.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
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
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
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
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!
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
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.
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
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
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 **************
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
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
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
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
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.
The movement makes me go yes
*y e s*
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: "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!
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
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
You know there's someone out there who finds out this tutorial useful
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*
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
_Dani proceeds to make a tutorial channel_
*Dani proceeds to tell everyone he doesn’t know how to make tutorials *
Dude just got included in a playlist made by unity
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
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
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
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
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.
Hey Dani! Do a grappler tutorial pls ^^
yes dani
There are some on yt too
good prediction mate
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...
I've yoinked this code more than 50 times since past 3 years
O U R C O D E
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 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.
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: i dont know how to explain things
Me: this is the only tutorial i could find that worked.
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
dani sounds way different when hes educational
Nice! Looking forward to that wall-running tutorial
*Last Online 6 Months Ago*
Me waiting for 2 years to find another freaking Danis tutorial upload
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
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)
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
If dani ever comes back from the dead he better make more tutorials
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
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.
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
to get the camera at the heads of the play you can put thy y as 0.6 1:12 / 8:35
thx
Ok not gonna lie, this actually helped a ton in my current game I'm working on!
Day 393: still waiting on Dani's next tutorial :(
true
true
0:41 AWW MANN
Greetings from Poland 😀🇵🇱🇵🇱🇵🇱
im making a unity project for fun and remembered dani got a tutorial channel, and it 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*
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.
@ايمن خضير لول
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
No one will talk about the disappointment when he said capsule
We want BEAN
Dami:Tecnical problems
Me you jokeing right
amazing tutorial ngl, straight to the point and very simple
Here is a good one ---> th-cam.com/video/Nx73K5qiTPc/w-d-xo.html
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
R.I.P DanisTutorials it is the best tutorial video ever
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
Can we get some F in chats so dani can bring back dani's tutorials
F
Thank you @@xmasteremilio6404 , Very cool 👍
F
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!
thank you dani for helping me pass my college class
short tutorial : just download RigidBodyFPSController and im out peace!!
Lmao
Are you the fake Dani?
I see 2 Dani
@@ngothanh1350 Dani is the main channel DaniTutorials is his tutorial channel
That's was just a joke xD
I tryed it didnt work at all the player imupts woldent work
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 :)
this makes me go yes
They actually gave karlson a youtube gaming page! good job
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
Very cool tutorial. I really like it.
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-
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!!
i expected him to make the capsule thicc good job gamer
When will we get tutorials like Guns from Karlson or Wall running
i think never
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));
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
This is actually the best tutorial I've every watched (so far)
yes its sad he is not active on this channel
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 say yes
Can you make a 4d game, or you can’t
hearing dani swear without censor is like dani without milk
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
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
I did everything correctly but my camera keeps randomly teleporting to my right every time I turn on the game, can anyone help ?
Well, remove the Parent from the Main Camera. Reset the transform. Set it again as a children from the camera. (Reset the position from the cam(not main))
And i hope i helped youh. When not, dont wonder. I am just a dumbass. 0 IQ. NoThIng
have the same problem and still unsolved
@@noghost6797 didn't work for me :((( My camera is really buggy and i cry
@@guri_lf1296 You have after that, make the main camera as a child from the camera
hippity hoppity your code is now my property
0:43 top 10 minecraft youtubers, who’ve SWORN
Please make a off the sticks ragdoll tutorial
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?
I decided to start making a game by using tutorials decided to start with Dani wanted movement from his game finished tutorial but i spent waaay too long messing with the movement having fun and then i lost motivation to continue today so all in all pretty productive today.