One way collision 3d

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Oliver_Ruszkai

I was trying to make a Smash bros. style fighting game and wanted to make platforms, that you jump trough from the bottom. I wanted to make this by toggling the disabled property, but because I have two players I run into issues.

:bust_in_silhouette: Reply From: Gluon

I would suggest you have an area2d instead of a collision shape on the platform. You could then check in the players script if they are in the area2d and not allow the y vector to have a positive value while they are in it. That way if the y vector is negative they can still move going up but when the y vector turns to positive they will stop moving down.