[question]: How do you implement Pushable?
KevinNcc opened this issue · 2 comments
KevinNcc commented
How can we help?
Hi,
When my player move toward an enemy he can push it, how can I disable it?
I tried the mixin Pushable but I couldn't make it work with.
Could you provide me a working example for modifying the status of the push to true or false?
Thank you very much.
RafaelBarbosatec commented
Hi @KevinNcc !
If you don't want you enemy that contains the mixin BlockMovementCollision
could be pushable you must set yout bodyType to static
:
setupBlockMovementCollision(
bodyType: BodyType.static,
);
KevinNcc commented
Hi, it's working perfectly, thank you!