Use dbPickObject command for simple bullet detection. Make sure the pick object, picks the object in the crosshair coordinates.
so if the enemy's id's are between 1 and 10 then:
dbPickObject(dbScreenWidth()/2,dbScreenHeight()/2,1,10);
so here's the basic shooting code:
if (dbMouseClick() == 1)
{
int collide = dbPickObject(dbScreenWidth()/2,dbScreenHeight()/2,1,10);
dbDeleteObject ( collide );
}
Hopefully that helps.
There are 2 ways to develop for the N64:
1. Develop C code with PsyQ SDK and illegal Nintendo libs
2. Develop C code with legal kits, such as the Ground Zero devkit (g0dev.zip)