Dev Update #2 - Polyline Collision


I am currently testing the new polyline collider shape and implementing the new one-way collision system for segments and polylines.

The new one-way collisions are only available for segments and polylines and allow other shapes to pass through one side without a collision. I am using the collision surface-normal and the velocity direction of the colliding shape to determine whether it can pass through or collides. If the surface-normal points in the opposite direction of the velocity then a collision occurs otherwise the object just passes through.

A nice side effect of this new system is that I can use it to restrict collisions when shapes are stuck into each other.

I will keep working on the polyline collisions next week and keep testing all the remaining shapes to make sure everything is working fine!

Thanks for reading :)

Dave Green

Get Shape Engine

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.