-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Comments
Merged
Hi @beanhead217 ! |
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
@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.
The text was updated successfully, but these errors were encountered: