0 votes

Hi all, i'm trying to make my 2.5d character to punch, if the hitbox area(3d) is not animated(it's always enabled and at its size and position) it gets detected by the hurtbox area(that doesn't move or change), but if i animate the hitbox by disabling/enabling it or changing its extents and position it doesn't get detected by the other hurtbox area.
I tried various Area, CollisionShape and AnimationPlayer settings but nothing.
Suggestions?

in Engine by (193 points)

1 Answer

0 votes

In case anyone is interested after many tries i have found a solution, in order to get the signal of onXarea_entered to work correctly the colliding area must translate or resize, it's like if Godot considers changed only the Areas that have translated or resized, instead i was translating and changing the size of the CollisionShape while keeping the Area unchanged.

by (193 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.