- Home /
Question by
egalea11 · Dec 17, 2015 at 10:42 AM ·
colliderraycastingdetectionrectscreenspace
What is the most efficient way of detecting an object? Using raycast, rect (screen space) or utilizing a capsule collider?
I am developing a mobile game and I wanted the program to be as light as it can be. Thanks in advance :)
Comment
Answer by allenallenallen · Dec 17, 2015 at 10:44 AM
Raycasts.
Of course, it can get fairly complicated depending on the situation and problems you want to solve. But raycasting is lightest of them all. Screen space should be pretty light since it's practically a raycast through the screen.