So at the moment i'm using ApplyForce to move a player, but it's bothering me that this function should be used to simulate an object pushing another object, but in the end, it's doing the trick.
The only problem i'm having, i have a world where my player is walking on, the friction of this world is set to 0, but once the player is standing still, it cannot start moving again, well, because the friction is 0 ...
So i thought about using SetLinearVelocity, now the player is moving great, but now he lost he's sense of gravity.
When i'm using SetLinearVelocity, it's moving in a horizontal direction without falling down.
Now my question is, is there a way to get the vertical position the player should be going, so i can still use SetLinearVelocotity.
Or is there a better way to move a player without losing its sense of gravity?
The only problem i'm having, i have a world where my player is walking on, the friction of this world is set to 0, but once the player is standing still, it cannot start moving again, well, because the friction is 0 ...
So i thought about using SetLinearVelocity, now the player is moving great, but now he lost he's sense of gravity.
When i'm using SetLinearVelocity, it's moving in a horizontal direction without falling down.
Now my question is, is there a way to get the vertical position the player should be going, so i can still use SetLinearVelocotity.
Or is there a better way to move a player without losing its sense of gravity?