Rigidbody Movement in Unity | Addforce , Velocity , MovePosition

Поделиться
HTML-код
  • Опубликовано: 19 дек 2024

Комментарии • 30

  • @onixitey6389
    @onixitey6389 Год назад +6

    Okay, why is this video so underrated??
    he's literally answering all my questions at once

    • @budgames
      @budgames  Год назад

      thanks for your compliment ❤️😂 yea it's a good one
      good luck with that❤️

    • @mahdib6334
      @mahdib6334 4 месяца назад

      exactly

  • @nicohalt3165
    @nicohalt3165 5 месяцев назад

    this is so well structured and told and you explain everything to a level i want to know. thanks

    • @budgames
      @budgames  4 месяца назад

      glad to hear these type of being helpful make my day

  • @shingAMarie
    @shingAMarie 10 месяцев назад

    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.

  • @gamersresidence6040
    @gamersresidence6040 5 месяцев назад +2

    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 :)

    • @budgames
      @budgames  4 месяца назад

      it only ignores if the moving object be kinematic, or is trigger of one of the colliders is enabled
      or sth like these

    • @alan9911
      @alan9911 4 месяца назад

      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.

  • @ijustwanttomakegames
    @ijustwanttomakegames Месяц назад

    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

    • @budgames
      @budgames  Месяц назад

      i believe it's better to use velocity, it completely depends on your game style

  • @eybaus
    @eybaus Год назад +1

    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.

  • @طاهرهیوسفزاده-ح2ي
    @طاهرهیوسفزاده-ح2ي 11 месяцев назад

    دمت گرم ❤

  • @johndouglas6519
    @johndouglas6519 2 года назад +1

    Would you recommend AddForce for a Humanoid Object?

    • @budgames
      @budgames  2 года назад

      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

  • @kinansy7114
    @kinansy7114 7 месяцев назад

    what is the name of the music playing in background while you were explaining rigidBody.Velocity 😁

  • @radudancoroian5169
    @radudancoroian5169 Месяц назад +1

    If only you could have given a script for jumping as well...

    • @budgames
      @budgames  Месяц назад

      whommm, i don't remember this one, but you can use our short jump tutorial: ruclips.net/user/shortsfmguXe2n4bk?si=LJqG_DO6LN09txg6

  • @mohokhachai
    @mohokhachai 10 месяцев назад +1

    Cool

  • @GregTheOfficial
    @GregTheOfficial 2 года назад +1

    Thanks!

  • @lakshya2204
    @lakshya2204 7 месяцев назад

    unity me value change ho rhi hi magr player move nhi kAR RHA

  • @HammaGaming
    @HammaGaming Год назад +1

    with MovePosition the player will ignore the colliders and move through them !!!

    • @budgames
      @budgames  Год назад +1

      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❤️

    • @HammaGaming
      @HammaGaming Год назад

      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!

    • @tomdriver6733
      @tomdriver6733 Год назад

      @@HammaGaming That is the point of the Charactercontroller. For Physicsinteraction use a Rigidbody.

  • @hello.4693
    @hello.4693 Год назад +4

    It's very difficult to understand you not because your accent because you are speaking too fast... but still a good Video thank you.

    • @budgames
      @budgames  Год назад +1

      we create a fast video till our subscribers get most needed things in less time
      thank you💙😍

    • @JAKEAVALON-rg8xm
      @JAKEAVALON-rg8xm Год назад

      i am from Myanmar but i understand

  • @__Rizzler__
    @__Rizzler__ 8 месяцев назад

    mfs who use slerp: