Will the MovePosition ignore physical walls? I am probably doing something wrong but it seems the player actor is highly likely to wall clip in my project. Any tips would be super appreciated :)
If your player clips through the wall when moving too fast, you should change the collision detection setting in your rigidbody component to continuous from discrete. in discrete mode it only checks for collisions each frame for performance reasons, so if you pass through the entire collision box of a wall in between frames, it will not realise. Continuous requires more computing power but after every frame it will check if there is a collider in between your current position and the one in the last frame, and if there is it will move the player back to where it should be logically.
Awesome introduction to AddForce/Velocity/Moveposition! If Im going for a rigidbodytype of plattformer (sidescrolling), should I use Velocity or Moveposition? I tried addforce, but the movement didnt feel optimal
actually it depends on your game type , as we said in video it doesn't matter how kind of object you use , only if your game is kind of throwing object or kind of racing or st like these you can use AddForce method generally MovePosition method is a better and more compatible with all game types method
yes moveposition has some problems with colliders best moving method that interacts with colliders is character controller watch this video in channel: ruclips.net/video/DbwkzSPA6ro/видео.html at first moments the moving problem is solved with character controller good luck friend❤️
But also the character controller has its own problem as well. Where there is no collision detection only cC.hit() and the lack of physics interaction!
Okay, why is this video so underrated??
he's literally answering all my questions at once
thanks for your compliment ❤️😂 yea it's a good one
good luck with that❤️
exactly
this is so well structured and told and you explain everything to a level i want to know. thanks
glad to hear these type of being helpful make my day
brilliant way of doing it it’s different from the other tutorials. I’ve been watching, although I wish you would’ve explained stuff like Atan.
Will the MovePosition ignore physical walls? I am probably doing something wrong but it seems the player actor is highly likely to wall clip in my project. Any tips would be super appreciated :)
it only ignores if the moving object be kinematic, or is trigger of one of the colliders is enabled
or sth like these
If your player clips through the wall when moving too fast, you should change the collision detection setting in your rigidbody component to continuous from discrete.
in discrete mode it only checks for collisions each frame for performance reasons, so if you pass through the entire collision box of a wall in between frames, it will not realise. Continuous requires more computing power but after every frame it will check if there is a collider in between your current position and the one in the last frame, and if there is it will move the player back to where it should be logically.
Awesome introduction to AddForce/Velocity/Moveposition!
If Im going for a rigidbodytype of plattformer (sidescrolling), should I use Velocity or Moveposition? I tried addforce, but the movement didnt feel optimal
i believe it's better to use velocity, it completely depends on your game style
How can we smooth MovePosition by adding some kind of acceleration? Right now it's either 0 speed or max speed and nothing in between.
دمت گرم ❤
Would you recommend AddForce for a Humanoid Object?
actually it depends on your game type , as we said in video it doesn't matter how kind of object you use ,
only if your game is kind of throwing object or kind of racing or st like these you can use AddForce method
generally MovePosition method is a better and more compatible with all game types method
what is the name of the music playing in background while you were explaining rigidBody.Velocity 😁
If only you could have given a script for jumping as well...
whommm, i don't remember this one, but you can use our short jump tutorial: ruclips.net/user/shortsfmguXe2n4bk?si=LJqG_DO6LN09txg6
Cool
Thanks!
your welcome :)
unity me value change ho rhi hi magr player move nhi kAR RHA
with MovePosition the player will ignore the colliders and move through them !!!
yes
moveposition has some problems with colliders
best moving method that interacts with colliders is character controller
watch this video in channel:
ruclips.net/video/DbwkzSPA6ro/видео.html
at first moments the moving problem is solved with character controller
good luck friend❤️
But also the character controller has its own problem as well. Where there is no collision detection only cC.hit() and the lack of physics interaction!
@@HammaGaming That is the point of the Charactercontroller. For Physicsinteraction use a Rigidbody.
It's very difficult to understand you not because your accent because you are speaking too fast... but still a good Video thank you.
we create a fast video till our subscribers get most needed things in less time
thank you💙😍
i am from Myanmar but i understand
mfs who use slerp: