GetVelocity() public method

public GetVelocity ( ) : Vector3
return Vector3
コード例 #1
0
ファイル: Actor.cs プロジェクト: andreydobrikov/exUnity
    ///////////////////////////////////////////////////////////////////////////////
    // functions
    ///////////////////////////////////////////////////////////////////////////////

    // ------------------------------------------------------------------
    // Desc:
    // ------------------------------------------------------------------

    void OnDrawGizmos()
    {
        Vector3 drawPos = transform.position + transform.up * 0.1f;

        exStaticDebugger.GizmosDrawCircleY(drawPos,
                                           actorInfo.radius,
                                           new Color(1.0f, 0.0f, 1.0f));
        if (movementState)
        {
            Gizmos.color = new Color(1.0f, 0.0f, 1.0f);
            Vector3 vel = movementState.GetVelocity();
            vel.y = 0.0f;
            Gizmos.DrawLine(drawPos, drawPos + vel);
        }
    }