#Thats problematic. Imagine if your gun

1 messages · Page 1 of 1 (latest)

brave wigeon
#

How do you go about that? @unreal thistle

#

I don't really understand the sphere cast part. Why cast spheres instead of using a sphere collider?

#

I also don't really understand the "move a bit" part

unreal thistle
#

Well the move a bit part is just that. Each update we do bullet.position+= distanceTravelledThisFrame, this distance is calculated based on the bullet speed. We do sphere casting because our bullets are not gameObjects at all, since they don’t need to be and we have a lot of them