ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Drag and Drop physics the way UNITY Intended || Tutorial (NEW 2023)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ค. 2023
  • github.com/Uni...
    In this video, I will show you how to quickly add drag and drop 2D Physics to your Unity games. It is very simple and works with Unity's built-in physics system, so you don't need to install anything new.

ความคิดเห็น • 18

  • @FoxeyWind
    @FoxeyWind 3 หลายเดือนก่อน +1

    Thanks alot, but is there a fix to the physics objects going through the walls when they're going too fast?

    • @robomobius
      @robomobius  3 หลายเดือนก่อน +1

      Yes! Good question. If you change the rigid body interaction to continuous, it will check for that.

    • @FoxeyWind
      @FoxeyWind 3 หลายเดือนก่อน +1

      @@robomobius Ok thanks, btw flr much help you get a sub :D

  • @mateusw.
    @mateusw. 4 หลายเดือนก่อน

    Thanks, worked as expected! Just a reminder for other ppl, add a sprite renderer to a obj, then add Rigid Body 2D, then set the rigidbody type to KINEMATIC and for the final part add a box collider.

    • @robomobius
      @robomobius  3 หลายเดือนก่อน +1

      Set it to active, not kinematic. This helpful script uses forces to move the objects, which won't do anything on a kinematic collider.

  • @Unity_Tutorial_Games
    @Unity_Tutorial_Games ปีที่แล้ว +2

    good

  • @Gman6400O
    @Gman6400O 7 หลายเดือนก่อน

    Im a beginner and I dont know what he means by layers

    • @robomobius
      @robomobius  7 หลายเดือนก่อน

      Hi! If you look in the inspector there is a Layer property underneath the name of the gameobject. On each rigidbody, change it to a specific layer.

    • @Gman6400O
      @Gman6400O 7 หลายเดือนก่อน

      @@robomobius ok ty

  • @user-rr5fx9zm1s
    @user-rr5fx9zm1s ปีที่แล้ว

    Where is the link?

    • @robomobius
      @robomobius  ปีที่แล้ว +2

      top of the description

  • @TrwineMakesStuff
    @TrwineMakesStuff ปีที่แล้ว +1

    none of the tutorials out there worked. BRUH.
    edit: i fixed it

    • @robomobius
      @robomobius  ปีที่แล้ว

      If this one didn't work then maybe you are on the wrong version. All of the movable objects in the scene have to have colliders and rigidbodys and be on the same layer. Did you change the class name?

    • @TrwineMakesStuff
      @TrwineMakesStuff ปีที่แล้ว

      @@robomobius yeah. done all that.. what version of unity did you use? i have 2022.3.2f1 since it installed automatically
      also forgot: the script doesn't even show these options and stuff like the drag layer

    • @TrwineMakesStuff
      @TrwineMakesStuff ปีที่แล้ว

      @@robomobius ay bro! don't forget to make your video contain saving the script before closing notepad++! it worked!

  • @Telesto_Timelost
    @Telesto_Timelost 6 หลายเดือนก่อน

    Bruh “copy my homework” isn’t a tutorial

    • @robomobius
      @robomobius  6 หลายเดือนก่อน

      Sorry. I'm just trying to make a simple example of how to use and where to find this asset, so if someone else wants to do something like this, they might find just what they're looking for.

    • @Telesto_Timelost
      @Telesto_Timelost 6 หลายเดือนก่อน

      @@robomobius ok all good