How to Add Force in DOTS Physics - Unity ECS Tutorial [ECS Ver. 0.17]

Поділитися
Вставка
  • Опубліковано 19 сер 2024

КОМЕНТАРІ • 29

  • @TurboMakesGames
    @TurboMakesGames  Рік тому +1

    ❗❗ *Caution:* This video was made using an older version of Unity ECS. While the core concepts remain the same, some of the API and workflows have changed as of ECS version 1.0. I would recommend checking out my ECS 1.0 tutorial video for a good overview of the latest standards for Unity’s DOTS: ua-cam.com/video/IO6_6Y_YUdE/v-deo.html
    Once again, the theory behind the concepts of this video are still relevant, however the API has changed. Stay tuned for further updated videos on this subject. Please let me know if you have any questions either here or in our Discord community: tmg.dev/Discord

  • @LukeClemens
    @LukeClemens 3 роки тому +3

    Cool! I didn't know about FixedStepSimulationGroup.

  • @wes5457
    @wes5457 3 роки тому +2

    Realy nice, ECS Is better now.

    • @TurboMakesGames
      @TurboMakesGames  3 роки тому +1

      Yes, becoming much more usable for a variety of projects

  • @movietoneofficial4028
    @movietoneofficial4028 3 роки тому +2

    I was working with the unity esc phisics and had some problems with this weird bump. That was really helpfull. Thank you for the video.

    • @TurboMakesGames
      @TurboMakesGames  3 роки тому +1

      I know, when I first came across that I was, "Am I going crazy!?!?"

  • @ash12181987
    @ash12181987 3 роки тому +4

    This is extremely useful, Thank you!

  • @contractlancer281
    @contractlancer281 3 роки тому +3

    If i ever get back to using Unity, id be brushing up on your videos more. I think these explanations are great for the physics of the engine cause thats where a lot of optimization is lost especially with inexperienced users. Keep up the great work.

    • @TurboMakesGames
      @TurboMakesGames  3 роки тому

      Glad you thought so, let me know if you ever get back into Unity development!!

  • @a.technology1446
    @a.technology1446 3 роки тому +2

    Thank u teacher 👍

  • @gilleswalther5964
    @gilleswalther5964 3 роки тому +1

    Really good video

  • @TurboMakesGames
    @TurboMakesGames  3 роки тому +1

    Question of the video: How do you plan on using DOTS physics forces in your Unity project?

    • @alejolab
      @alejolab 3 роки тому +1

      Launching seeds of virtual plants 😬

    • @TurboMakesGames
      @TurboMakesGames  3 роки тому +1

      @@alejolab Haha that sounds fun!

    • @joepeters8746
      @joepeters8746 3 роки тому

      Thank you, that is really an easy solution, thank you for comming up with it!
      I will definitely use it to build some Solarsystems

    • @kloa4219
      @kloa4219 3 роки тому +1

      do a "how to add collision triggers" in DOTS

  • @yxiao5441
    @yxiao5441 2 роки тому +1

    nice video,love u

  • @daniyalniazi1771
    @daniyalniazi1771 Рік тому +1

    how can I do the same in ISystem

    • @TurboMakesGames
      @TurboMakesGames  Рік тому

      Should be pretty much the same, but you'd do the steps inside an IJobEntity or an idomatic foreach. I've gotten some requests from people to do an updated Physics video so it is something I'll be talking more about hopefully soon!

  • @user-mq1nd6oh3u
    @user-mq1nd6oh3u 3 роки тому

    there are lots methods in PhysicsComponentExtensions, does anyone can tell the difference between them, i cant find any description

  • @stevanrose7090
    @stevanrose7090 2 роки тому

    How do you stop add force ,

    • @TurboMakesGames
      @TurboMakesGames  2 роки тому

      In this example, I'm only applying force when a specific key is held. You could also use entity queries to query for entities with specific data components then add force or not depending on what components they have or don't have. If you just want to stop a moving entity, you should just be able to set the value of the physics velocity component to zero. Hope that helps!

  • @stefan429
    @stefan429 3 роки тому

    bro i cant even import DOTS without getting errors T>T lol

    • @TurboMakesGames
      @TurboMakesGames  3 роки тому

      Oh no! Make sure you are using the most recent 2020.3 LTS version of the engine. Sometimes you also need to restart the editor to clear out the errors too.