so i have this code
// Update is called once per frame
void Update () {
if (input.GetMouseDown("Fire1")){
GameObject bullet = Instantiate(prefab) as GameObject;
bullet.transform.position = transform.position + ___;
Rigidbody rb = bullet.GetComponent<Rigidbody>;
rb.velocity = ___ * 960/;
}
}
that means that a mesh (bullet)
will be “fired” from a gun every time i click it will be fired, but i want to have a meters per second velocity to it, but i dont know how to represent 1 second the default unit on unity is miliseconds, or seconds? or another one?