-
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JoystickMoveToPosition not working as expected #115
Comments
Hi @KyleKun ! |
By Tiled only |
humm. Ok |
I've tested a little bit more and it seems that collisions are overlapping and this is the cause of "locking" the player, player's collision enters the object's collision |
Understand. I will try to simulate a scenario similar to yours. Because it wasn't to trace a route that passes through the objectives that have collision. |
Could you send me a print with constructionMode: true ? |
I've already identified the problem. I'm thinking here of a way to solve this. Hahaha |
Hi @KyleKun I hope it’s works good 😊 |
Will test it asap, thanks very much! |
The scenario with the table and chairs is fixed, but it still happens in some places, see these 2 videos: Screen_Recording_20210612-130748.mp4Screen_Recording_20210612-130929.mp4 |
Hi @KyleKun |
Hi @RafaelBarbosatec , output.mp4I've 2 suggestions but maybe they are quite complex to implement:
|
Hi @KyleKun ! Good suggestions. I will work on it. |
You can check theses spaces that is considered collision adding: setupMoveToPositionAlongThePath(
showBarriersCalculated: true,
) in the player constructor. |
Hi @KyleKun ! |
It works like a charm! |
Hello,
I'm trying to use JoystickMoveToPosition on my map built with tiled where my objects have polygon collision, but the a_star algorithm seems to not detect them, resulting in locking the player as shown in the video:
Screen_Recording_20210606-183952.mp4
The text was updated successfully, but these errors were encountered: