1
General / Re: Collision detection between a vertex and a sprite (or collision box).
« on: March 18, 2013, 10:24:01 am »
Thank you for the link eXpl0it3r and the keywords.
I had the same problem, thanks to the post I now understand what I actually want to do and share the knowledge idea. Instead of checking collision on the line you could use a sprite with a specific length and then rotate is relative to the position of the mouse, and use .intersect or .contains when it collides with an object.
Hope this helped.
Best regards Nygarda.
I had the same problem, thanks to the post I now understand what I actually want to do and share the knowledge idea. Instead of checking collision on the line you could use a sprite with a specific length and then rotate is relative to the position of the mouse, and use .intersect or .contains when it collides with an object.
Hope this helped.
Best regards Nygarda.