hey,
i’m trying to make a slow motion effect.
what i need to know is that if there is any way to make the slow motion much more effective on my bullets ?
im using a simple instantiate method to shoot bullets in the scene i need them to be much more slower than other objects.
when i press shift key i change the time scale to 0.3 for every object in the scene but i need the time scale to be much lower for bullets.
is there any way to do that?
here are the scripts :
if (Input.GetKey(KeyCode.LeftShift))
{
if (Time.timeScale == 1.0F)
Time.timeScale = slowTimeFactor;
Time.fixedDeltaTime = 0.02F * Time.timeScale;
}
else
{
Time.timeScale = 1.0F;
Time.fixedDeltaTime = 0.02F;
}
/////////////////////////////////////////////
////////BULLET INSTANCCIATE///////
clone = Instantiate(BulletObjeect, BulletSpawner.transform.position, Quaternion.identity) as Rigidbody;
clone.velocity = BulletSpawner.transform.TransformDirection(Vector3.forward * BulletSpeed);
Destroy(clone.gameObject, BulletLifeTime);