gameObject.Find("ShotFire").particleEmitter.localVelocity += rigidbody.velocity.z.magnitude;
I have a car that can shoot with fire (using particle system to show flames and ray cast to detect if it hits objects). If car moves very fast forward, flames get blown away behind the car. And my ray 10 meters ahead the car still burns objects.
So, to fix this I tried the code above or variations of it, but console says that its impossible, because one is of float type and other is Vector3. Didn’t find a way to turn Vector3 into float.
I’m not using force on particle system, I’m using local velocity z = 20.