[Dev Update #2] - Polyline Collision #7
SoloByte
announced in
Dev Updates
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
YouTube
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
Beta Was this translation helpful? Give feedback.
All reactions