![]() |
|
VB.NET - Simple Collision Detection - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework) +--- Thread: VB.NET - Simple Collision Detection (/Thread-VB-NET-Simple-Collision-Detection) Pages:
1
2
|
RE: VB.NET - Simple Collision Detection - invisal - 08-12-2013 Quote:Not too bad, but why did you go with a Class instead of a Structure?I don't know as well. Maybe, I feel that Class is more extendable and feature-rich than Structure. Anyway, it is a just a small demonstration of how to detect circle and rectangle detection. I don't know what is the name of my algorithm. RE: VB.NET - Simple Collision Detection - ArkPhaze - 08-12-2013 (08-12-2013, 05:26 PM)invisal Wrote:Quote:Not too bad, but why did you go with a Class instead of a Structure?I don't know as well. Maybe, I feel that Class is more extendable and feature-rich It is, but it's not needed here anyways. Plus a class object is a reference type, not a value type like a stucture is, thus it's allocated on the heap, and not the stack, which makes instantiation slower. This is a fairly small usertype too, so structure's would be much more appropriate. |