Raised This Month: $ Target: $400
 0% 

Prevent collision between two entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fearAR
Veteran Member
Join Date: Oct 2010
Old 12-23-2012 , 17:27   Prevent collision between two entities
Reply With Quote #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.
fearAR is offline
Send a message via MSN to fearAR
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode