suriyun-mmorpg / UnityMultiplayerARPG_2DAI

AI implement for 2D mode, which implements A* Pathfinding Project
MIT License
10 stars 0 forks source link

Player is not on the side to attack. #4

Closed nowsfeky closed 4 years ago

nowsfeky commented 4 years ago

When selecting the monster, he goes to the monster to attack correctly, but does not stand next to it, trying to enter the monster because it is a destination point.

Koodetat commented 4 years ago

I've the same problem in 3d with large monsters.

insthync commented 4 years ago

This was fixed, if problem still occurring, you can reopen it.

nowsfeky commented 4 years ago

Hello insthync! When attacking the mob, the player behaves strangely. It is shaking and entering the mob. I made a video to demonstrate. https://www.youtube.com/watch?v=Kthq9Z5PeFE

insthync commented 4 years ago

How about monster collider settings, which version are you using, and which AI are you using?, AILerp or AIPath?

nowsfeky commented 4 years ago

I can only use AILerp on the monster and the player. I'm using the collider according to the map's node size. Ex: node size map of 1 so the boxcollider is 1. But in fact I just did the sample test without touching anything and the same thing happened. Was there any way the monster was an obstacle? KIT version is 1.54b (2020-03-21)

insthync commented 4 years ago

Problem with AILerp again, Have to do many thing to fix this because AILerp is moving in grid while the controller / monster activity was made for non-grid movement. I have to add function that tell state of the AI was reached destination to AstarCharacterMovement2D Controller and then makes controller / monster activity does an attack when AI was reached destination.

nowsfeky commented 4 years ago

OK. No problem.

insthync commented 4 years ago

I have pushed the update which added ReachedDestination field to AstarCharacterMovement2D, but still have to modifies controller / monster activity. As I tried to changes something it work good.

nowsfeky commented 4 years ago

It's ok. I will be waiting for the next release.

nowsfeky commented 4 years ago

Hello ! Any predictions to fix?