I take some bad decisions so that I can complete it in time.
Type: Posts; User: pepzi999
I take some bad decisions so that I can complete it in time.
I could use this (though I already know the angle so that tan^-1 business isn't neccessary), but I took the easy way out and made a list of squares with collision detection of their own.
...
I think I'll go with the easy way and check for squares at each end, the only thing that would look weird then would be if the sword is angled at around 45° and gets thrown on to a corner of a...
http://www.youtube.com/watch?v=uNkIxzFvn1w
Ok, is this way of cheating (not doing it from scratch) very costful?
--- Update ---
For some reason the first post seems vanished. However the problem is that my code acts exactly like I...
Yes, the green boxes are only supposed to be red when the blue vector is in direct contact.
--- Update ---
You know what? I'll post a video
As of now, my code checks if either the vectors endpoints are between the rectangles y-values and if they are, it does the same for the x-values, however this is not correct, more andvanced math...