A
A
Artyom Dadashchyants2021-08-04 18:01:02
C++ / C#
Artyom Dadashchyants, 2021-08-04 18:01:02

How to catch the entrance to your own collider?

We have object1 and object2. If the trigger is object2, then OnTriggerEnter processes the input only if it hangs on object1, because object2 is an external trigger for it. How to make object2 be a trigger, and you can catch the object entering it, and so that the handler hangs on o2? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Kuzmenko, 2021-08-06
@morex972

if object 1 is just a collider, then you just need to turn on isTrigger for it, and if it is with a material (for example, a capsule or a wall), then you need to hang a rigidbody with isKinematic turned on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question