More collide and bounce fun
shaihalud
Member Posts: 34
Right. So, I have the player walking around using the keyboard, and other various enemies walking around using their own random velocities. Everyone's restitution is set to 0. If they are still moving and collide, they don't bounce, as I set a rule to set velocity to 0 on (actor -> overlaps or collides with -> tag). But if I stop moving the player, and an enemy collides with them, the player gets bounced away. At first this happened to all the guys, so I set the enemies density to something ridiculously high (500), and the player to something ridiculously low (1; I found that if the density is higher for the player I can start pushing around the enemies, which is not what I want at all). So now the player can't push around the enemies, but the enemies still push him. So I set the friction to something ridiculously high on the player (100), but it doesn't solve the problem. Most of the time the player doesn't move, but some times he will get whacked and just drift away... I thought setting restitution to 0 would solve this problem?
Also: they need to have a Collide, as otherwise the sprites overlap, which I also don't want.
Also: they need to have a Collide, as otherwise the sprites overlap, which I also don't want.
Comments