Move and rotate the object in direction of movement! Unity basics.

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

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

  • @collativelearning
    @collativelearning Год назад +2

    Thank you so much! Searched high and low to find a basic explanation of 3D rigidbody rotation. None of them worked when I tried to implement them. This video absolutely delivered.

  • @isaacmuscat5082
    @isaacmuscat5082 3 года назад +15

    This is the only resource I could find that explains how to rotate a rigid body in a target direction in the fixed update method. Thank you so much.

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

    Excellent video. And as others said, this is the only video which shows how to rotate a game object on mouse or touch and in a just couple of lines of code. Thanks.

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

    Can you help me fix issue?..
    I want to mod game.. boat object.
    When paddle is on the left, boat should rotate slightly to the left. Right paddle.. to right.
    I use transform.Rotate() and It looks like works, like it should..
    But my issue: boat starts to rotate, and slowly nose go up, with every paddle swing boat moves up..
    I need such paddle action, but I can't find solution.
    chatgpt not helps.. he actually gives wrong answers :(
    Boat rotates to Left and Right (X axis) while moves.
    But I need rotate whole object around axis.. So left side goes down, and right goes up.
    Thanks for any info

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

    Extremely well-explained... Thank you.

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

    Thank you a lot for the super clear explanation!

  • @mr.phantomdx10669
    @mr.phantomdx10669 Год назад +1

    hello bro i want to know that how can i make wall run in unity plz reply

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

    This approach is better than moving transform itself, but it's still not fully utilizing Unity's physics system. For example interpolation won't work with this approach. I recommend manually calculating and applying Rigidbody's velocity and angularVelocity or use AddForce and AddTorque methods.

  • @suzypayne2333
    @suzypayne2333 3 года назад

    Clear and simple, thank you!

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

    Thank you so much

  • @djblast101
    @djblast101 3 года назад

    Awesome job! Help me out!

  • @chichichichichichiOwO
    @chichichichichichiOwO 3 года назад

    How do you do this using Unitys new input system ?

    • @iR3dy
      @iR3dy 3 года назад

      Samyam she has a tut on how to do this but not with a rigidbody, but u can use this code and just tweak it a bit i think.. I'm about to try

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

    Thanks!

  • @jaycn4115
    @jaycn4115 3 года назад

    thanks sir

  • @EroDoman
    @EroDoman 3 года назад

    Thanks

  • @Tobibzy
    @Tobibzy 3 года назад +3

    hi this rly helped. could u make a script like this where its pointing the direction its moving but whith a jump pls. if you can then pls reply to my comment with the script so i can copy paste it. btw nice youtube channel