コード例 #1
0
    void Update()
    {
        Vector2 v = rb.velocity;

        v          += avoid.steerDirection();
        v          += align.steerDirection();
        v          += centre.steerDirection();
        v           = v.normalized * speed;
        rb.velocity = v;
    }