Question by
AcePilot10 · Aug 11, 2016 at 12:13 PM ·
rigidbody2dphysics2dcollider2dground
2D Physics not working correctly
Hello! I'm creating a 2D platformer, but i've ran into a little roadblock. I have a truck which I put colliders on it's wheels as well as a RigidBody. I also have colliders on the ground so that the truck has an actual ground. I have tested by making a OnTriggerEnter2D function, and when the truck does trigger when it collides with the ground but it just falls right through. Any help would be awesome, thanks!
Comment
Best Answer
Answer by MelvMay · Aug 11, 2016 at 01:31 PM
Triggers don't produce a collision response; you just get a callback. You should not have the wheels as triggers then use the OnCollisionEnter2D if you need the callback.