Hi.
in welcher kommastelle steht die geschwindigkeit vom bullet (Schuss)?
[Client] void Shoot () { Debug.Log ("SHOOT"); if (!isLocalPlayer) { return; } //We are shooting, call the OnShoot method on the server CmdOnShoot (); RaycastHit _hit; if (Physics.Raycast(cam.transform.position, cam.transform.forward, out _hit, currentWeapon.range, mask)) { if (_hit.collider.tag == PLAYER_TAG) { CmdPlayerShot (_hit.collider.name, currentWeapon.damage); } //We hit something, call the OnHit method on the server CmdOnHit (_hit.point, _hit.normal); } }
Der Schuss trifft sofort aber ich will das er erst mal zum Ziel fliegt und dann erst trifft.
Bin kein Programmierer aber ich gebe mir Mühe das zu verstehen...