Quantcast
Channel: Questions in topic: "physics 2d"
Viewing all articles
Browse latest Browse all 132

How to make OnTriggerEnter2D work?

$
0
0
I'm using Unity 4.3 and I was testing the 2D physics. Somehow I can't get a collision response from a kinetic body and a trigger. Here's the basic setup: Player +- RigidBody2D (kinematic) +- CircleCollider2D Trigger +- CircleCollider2D (trigger) There's a `OnTriggerEnter2D` method on both the Trigger- and the Player-Script, but they don't fire. If I ditch the 2D physics components and build the exact same setup with the old (3D) physics components, everything works as expected.

Viewing all articles
Browse latest Browse all 132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>