Search Unity

[Video Tutorial] Roll-A-Ball Tutorial Recreated Using DOTS/ECS

Discussion in 'Entity Component System' started by JohnnyTurbo, Feb 6, 2020.

  1. JohnnyTurbo

    JohnnyTurbo

    Joined:
    May 17, 2017
    Posts:
    42
    Hello All!

    Recently I've been experimenting with DOTS - having a ton of fun, and learning a lot - so I figured I'd share some of the things I've learned so far. I decided to recreate the classic Unity Roll-A-Ball tutorial using DOTS and ECS to introduce people to the basic concepts of Entities, Components, and Systems and show how they all interact to do basic things.

    In this video I'll demonstrate:
    • Converting GameObjects to entities
    • Spawning entities through code
    • Destroying entities through code
    • Rolling the ball entity with physics
    • Rotating the cube entities through code
    • Using the cubes as triggers so we can pick them up and increase our score
    • Making the camera GameObject follow the ball entity
    • And a few other useful tidbits along the way
    I'm still pretty new to data oriented programming, so let me know if you think there is anything I can demonstrate or explain better. Open to any feedback on how I can make these instructional videos better for you all!

    Also let me know what kinds of things you'd like to see in future videos related to Unity DOTS and ECS.

    Enjoy!

     
  2. vildauget

    vildauget

    Joined:
    Mar 10, 2014
    Posts:
    121
    Thank you. Easy to follow tutorial. I hadn't got to ITriggerEventsJob yet, so putting that example in my metacode base.
     
    JohnnyTurbo likes this.