Density 0 doesn't seem to work =/
tiagojdferreira
Member Posts: 12
Hey guys,
I just made my player actor with density 0 and my enemy actors with density 0, still, when my player collides with the enemies it pulls them.
How can I fix that?
I just made my player actor with density 0 and my enemy actors with density 0, still, when my player collides with the enemies it pulls them.
How can I fix that?
Comments
Density 0 and Restitution 0
When my player collides against an enemy, if I tell him to keep moving forward he pulls the enemies in from of him (instead of being still).
I want the enemies to be able to block the progress of my character.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
If I make the enemy density 0 and the player density 1000 I can push the enemy but the enemy can't push me.
What I want is a way that neither me, nor the enemy can push each other. (isn't that what density 0 is supposed to do?)
Remember that the player moves, but the enemy also moves.
When I have the time, I'll try making a boolean attack that changes to true when the enemy is close to the player, making the enemy stopping and attacking and that changes to false once the player is far from the enemy, making him chase the player and not attack. If I put the enemies with density 1000 this ought to solve the problem.
Isn't there a simpler solution?