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

One way platform using 2D Colliders?

$
0
0
I am currently in the process of building a platform game and I am looking into porting it over to the new 2D physics engine that was added in 4.3. It looks like most of it should port over, but I have no idea how to platforms that can only be collided with from above. My current solution using the 3D system is a script I altered that converts the current collider into a mesh collider that only has faces pointing upwards. This seems to work really well, but I can't seem to find a similar solution using the 2D colliders. I know that Box2D has something like a pre-collision event you can intercept before the physics system handles a collision, effectively giving you the option to ignore the collision, but it doesn't look like that functionality exists in the Unity release. Does anyone have a solution? Or perhaps know if an update may include the hooks that I am looking for? Any help is much appreciated. Cheers, Sev

Viewing all articles
Browse latest Browse all 132

Trending Articles



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