Don’t use a monobehavior for each bullet, it’s not gonna scale well.
What was your problem with the raycast? instead of saying “it didn’t work” say what didn’t work, show your code.
I always do bullets with raycasts myself so i know it works.
Sorry I was at work all day today. what should I do instead of having it call from Monobehaviour?
For the raycast not working, I have a raycast on the bullet that checks to see if there is a wall in front of the bullet to check if there will be a collision because the bullet is moving so fast sometime the bullet skips through the collision and collides at a different point on the collider it is hitting.
For the code I have attached to the bullet, this it it. I changed a few things after I posted this yesterday and I’m not to sure where I left off so if there are some pieces that dont make sense, that’s probably where I left off.
I want the raycast to check in front of the bullet and look for a collision so the bullet will always collide and be destroyed at the same spot (if the player and bullet angle doesn’t change)