R
R
Roman Kashatnov2020-03-11 18:26:01
C++ / C#
Roman Kashatnov, 2020-03-11 18:26:01

Ignoring by the player of the platform provided?

I'm new to C#, I need the player to ignore it while flying through the platform from below, but stuck at this moment

if (rb.velocity.y > 0)
                {
                    Physics2D.IgnoreCollision();
                }


how to insert the elements there

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DanielMcRon, 2020-03-11
@Roma_K01

Well, there is Platform Effector2d , which will make it possible to shed from below. And why do you need it to get stuck in the platform?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question