|
Author
|
Message
|
|
Veteran Member
|

12-23-2012
, 17:27
Prevent collision between two entities
|
#1
|
Hi, I am making a plugin where, a determined number of entities move around the map, so in certain moments, the entities are colliding, and they can't move forward because one is colliding with other, and the other entity suffer the same problem.
So I am looking for a way to prevent this collision, and I am verifying constantly if in front of the entity there is other entity, so it stops moving for a moment, and then it returns to move, but this form isn't sufficient because when one is beside the other, in determined moment they will collide, and they won't move anyway, so I'm looking for a way in which players' entities collides, their bodies moves a little to the side so they can't get inside the other, and stuck each other.
Greetings.
Image examples:
Pre:
[IMG]http://**************/a/img716/1451/asd1ng.jpg[/IMG]
Post:
[IMG]http://**************/a/img202/1941/asd2ew.jpg[/IMG]
__________________
~~~~ NPC AI ~~~~
[ Pathfinding - OK ]
[ Citizen AI - OK ]
[ Handle Weapons - --- ]
Last edited by fearAR; 12-23-2012 at 17:39.
|
|
|
|