The problem iam having is that iam editing the area(hitbox) in the player script.
func _attackBox1( hitname, _x, _y, _w, _h, _z, _state, _anim, dir):
hitname.translation.x = _x;
hitname.translation.y = _y;
hitname.scale.x = _w;
hitname.scale.y = _h;
hitname.scale.z = _z;
hit_st = _state;
hit_anim = _anim;
hitname.hitFacing = dir;
#----------------------//----------------//---------------------------------
func _physics_process(delta: float) -> void:
_attackBox1( $hitBox, -0.07, 0.1, 0.86, 1.2, 0.9, "st_fall1", "fall1" , my_direction );
Since the collision is a lot bigger than the area cube this number's will get very small.
The depth value for example (Z) stays at 0.003, to get the collision right ?!?