Hi! I have problem with applying force to instantiated bullet. Vector3.something make my object move by world axis instead of local. I also tried applying force/velocity in separate script.
Transform bullet= Instantiate(bulletPrefab,SpawnPoint.position,SpawnPoint.rotation) as Transform;
bullet.rigidbody.velocity=Vector3.forward*100;
or
bullet.rigidbody.AddForce(Vector3.forward*100);
both give same result - bullet move along the world axis instead of local. I wonder what could be wrong because code in script reference is the same. Should this be in FixedUpdate?
As for the Update vs FixedUpdate, it’s my understanding that most if not all physics actions should be placed in FixedUpdate. You can remove the need for fixed update by multiplying your values by Time.deltaTime, but fixed update is a known quantity that is less prone to fluctuations.