Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Patoland

Hi guys, i need to know if there's some way to check if the mouse pointer is in collision against one or several moving entities on the screen...any ideas?
tnx in advance!

1 decade ago by StuartTresadern

A couple a ways I can think of:

1) in your main update check if an entity is under the mouse pointer . Depends how many entities you are looking at !.

2) create a simple entity (void for example) and move this around like an invisible crosshair. You can then use the normal collision checks.

1 decade ago by Patoland

Hi Stusrtresadern, thanks for your ideas, actually the last one sounds perfect, i'll try it for sure!
tnx!
Page 1 of 1
« first « previous next › last »