GetVelocity() public méthode

public GetVelocity ( ) : Vector3
Résultat Vector3
Exemple #1
0
    ///////////////////////////////////////////////////////////////////////////////
    // 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);
        }
    }