Skip to content
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

Bug: onCollision not return false when target is moving #402

Closed
beanhead217 opened this issue Apr 27, 2023 · 2 comments
Closed

Bug: onCollision not return false when target is moving #402

beanhead217 opened this issue Apr 27, 2023 · 2 comments

Comments

@beanhead217
Copy link

@override bool onCollision(GameComponent component, bool active) { if (component is FlyingAttackObject) { return false; } return super.onCollision(component, active); }

I used the above code to ignore collision for simpleAttackRangeByAngle. But I find that when the target is moving the component still collides with the target object.

Apr-27-2023 09-04-55

@RafaelBarbosatec
Copy link
Owner

Hi @beanhead217 !
Please check the version 2.12.4

@beanhead217
Copy link
Author

Version 2.12.4 works perfectly!! You rock! thanks, Rafael!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants