- Home /
Multiplayer projectiles collision
Hi! In my game tanks shooting projectiles, these projectiles is rigidbodys objects with huge speed. They have box collider, and collision maded with raycast in fixedupdate. In singleplayer when projectile collide with tank, projectile explode and tank check what of projectile is that and do some stuff. But in multiplayer projectile sometimes just fly through tank, sometimes explode when touch tank, but tank never collide projectile. In short, projectile OnCollisionEnter with tank works, tank OnCollisionEnter with projectile doesnt work. Projectiles and tanks instantiate with Network.Instantiate. Projectiles and tanks have NetworkView, with position and rotation synchronization. Projectiles destroys with RPC function.
And my question is why it doesnt work?
P.S. sorry for my bad english)