I have made two scripts for weapons one of them use reaycasting and the other uses projectile rigidbody have trigger
wich is better
I have tried them i think raycasting is more accuarte and the bullet prefab is faster
what is your opinion?
I have made two scripts for weapons one of them use reaycasting and the other uses projectile rigidbody have trigger
wich is better
I have tried them i think raycasting is more accuarte and the bullet prefab is faster
what is your opinion?
Raycasting would let the bullet hit its target instantaneously where a bullet with a rigidbody attached would have a travel time. In terms of weapons, the rigidbody option would work better for something like a rocket launcher.