5 reputation
2
bio website
location
age
visits member for 1 year, 10 months
seen Nov 15 '13 at 5:33

Jan
18
comment Vector2's static methods and the garbage collector
Thank you but I wasn't really asking for optimization purposes. It was more general curiosity about the how Vector2 is handled and also for the convenience of not having to update the AABB position vector whenever it's parent entity's position is changed. However I did not know it was a struct and that clears everything up.
Jan
18
comment Vector2's static methods and the garbage collector
ah I have read about structs and how they are allocated on the stack instead of the heap. This definitely clears things up and I would much rather stick with the pain of calling an updateBounds() method then lose the perfermence benefit of using structs. Thank you kindly
Jan
18
accepted Vector2's static methods and the garbage collector
Jan
18
asked Vector2's static methods and the garbage collector
Jan
11
comment Separating Axis Theorem fails at certain angles
I thought I was close as I followed the calculation as best as I could I just didn't realise |ProjB(A)| meant the absolute value of vector B on A
Jan
11
awarded  Scholar
Jan
11
comment Separating Axis Theorem fails at certain angles
Nice one. Thank you very much. I did eventually get it to work but I replaced every dot product with a custom method that got the projection vector and then worked out it length but your way eliminates 12 square roots per overlap so that's awesome. Thanks again.
Jan
11
accepted Separating Axis Theorem fails at certain angles
Jan
11
awarded  Editor
Jan
11
revised Separating Axis Theorem fails at certain angles
replaced o.halfHeight with o.halfWidth on checkOX(). Still doesnt work tho.
Jan
11
asked Separating Axis Theorem fails at certain angles