Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Best way to move a physics character around? First person / Third person snappy movement.

Discussion in 'Entity Component System' started by toomasio, Aug 12, 2020.

  1. toomasio

    toomasio

    Joined:
    Nov 19, 2013
    Posts:
    195
    Hello,

    I am trying to figure out the best way to move a character using DOTS physics.

    I have tried using "Translation", but the character always bounces off the walls like a spring board..then keeps sliding indefinitely in the opposite direction, which doesn't work.

    I have tried setting physics velocity, but I do not like the way this will override the base physics contributors (like gravity, possibility of adding explosive forces, etc).

    I have also tried using additive velocity along with using impulse forces, but then I have to play around with the drag and other settings to make the character not look like its sliding around on ice...which ends up with an unsatisfying feel.

    Is there a solid Physics movement strategy like translation that will also not have the player bounce and glitch when you run a player into a wall...while also having the base functionality of the physics system?

    Thanks,
     
  2. Piefayth

    Piefayth

    Joined:
    Feb 7, 2017
    Posts:
    61
    toomasio likes this.
  3. toomasio

    toomasio

    Joined:
    Nov 19, 2013
    Posts:
    195
    Damn. Was hoping to not have to manually configure the velocity for every situation. Just want to push a simple controller around while it interacts with physics...maybe some manual stuff here and there.

    Oh well. Thanks for the reply. Guess I will stick to playing around with the damping settings and whatnot.

    Also thanks for the physics forum link. will ask there in the future.
     
    Nyanpas likes this.