Search found 5 matches

by razerbladex43
Wed Oct 28, 2020 6:25 pm
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 11850

Re: 2d collision with rotated pictures

May be will be usefull. The main idea is to get the sum of the 2 shapes (hull). If the center of an object is inside a hull, the objects are intersecting. In motion, check the intersection of the hull with a segment from the center of the moved object to its destination point. https://love2d.org/fo...
by razerbladex43
Tue Oct 27, 2020 11:23 pm
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 11850

Re: 2d collision with rotated pictures

the game i'm making is very similar to this one https://awesometanks2.com/ and if you can give it a look and tell me what kind of collision system they are using that would be very nice
by razerbladex43
Tue Oct 27, 2020 11:20 pm
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 11850

Re: 2d collision with rotated pictures

dezoitodemaio wrote: Mon Oct 26, 2020 2:06 pm Since rectangles are made of lines you could check line to line collision, something like https://github.com/processing/processin ... -Detection. If any line of Rectangle A intersects any line of Rectangle B then there are colliding.
i'll try to implement this also
by razerbladex43
Tue Oct 27, 2020 11:18 pm
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 11850

Re: 2d collision with rotated pictures

I'm actualling trying to understand the separating axis theorem but it seems to difficult. also i know hc but i prefer sat i think i'll try to understand. do you know a french tutorial for the sat because i'm not familiar with english language
by razerbladex43
Mon Oct 26, 2020 12:13 am
Forum: Support and Development
Topic: 2d collision with rotated pictures
Replies: 12
Views: 11850

2d collision with rotated pictures

Hi everyone,
i have a big question. my problem is that i want make a collision system beetwen two rotated/angled sprites. theses sprites are both same sizes and they have rectangle form. I need it for the tank game i'm actually making and it's very urgent so i need your help.
thanks in advance.