SyncCharacter.RpcApplyForce C# (CSharp) Method

RpcApplyForce() private method

private RpcApplyForce ( float x, float y, float z ) : void
x float
y float
z float
return void
    public void RpcApplyForce(float x, float y, float z)
    {
        if (isLocalPlayer)
        {
            if (y > 20000)
                y = 20000;
            if (x > 20000)
                x = 20000;
            if (z > 20000)
                z = 20000;
            this.character.GetComponent<Rigidbody>().velocity = Vector3.zero;
            this.character.GetComponent<Rigidbody>().AddForce(x, y, z);
            this.controller.CdDisable = y / 20000f;
        }
    }