Search Unity

Car move with DOTS

Discussion in 'Physics for ECS' started by florinel2102, Feb 4, 2020.

  1. florinel2102

    florinel2102

    Joined:
    May 21, 2019
    Posts:
    76
    I'm trying to figure out, how handle wheel collider in ECS , I mean how to control car/vehicle after convert to entity (e.g : how to add Torque ? ) . Thanks for your time !
     
    Mikael-H likes this.
  2. Mikael-H

    Mikael-H

    Joined:
    Apr 26, 2013
    Posts:
    309
    Well there are cars in the dots physics sample on github but the code is pretty crappy. Essentially they reimplemented a wheel collider, shoot raycasts for each wheel.

    I think you're better off writing your own wheel collider from scratch and creating a system for handling it. That's what I intend to do, we'll see how far I get :)
     
    florinel2102 likes this.