public void Act()
    {
        Vector3 currentPosition       = c_cameraData.v_currentPosition;
        Vector3 currentTargetPosition = c_cameraData.v_targetPosition;
        Vector3 lookVector            = c_cameraData.v_currentDirection;

        FocusCartridge.PointVectorAt(ref currentPosition, ref currentTargetPosition, ref lookVector);

        c_cameraData.v_currentDirection = lookVector;
    }
    public void Act()
    {
        Vector3 currentPosition       = c_cameraData.v_currentPosition;
        Vector3 currentTargetPosition = c_cameraData.v_targetPosition;
        Vector3 lookVector            = c_cameraData.v_currentDirection;

        FocusCartridge.PointVectorAt(ref currentPosition, ref currentTargetPosition, ref lookVector);

        c_cameraData.v_currentDirection = lookVector;
        c_cameraData.q_cameraRotation   = Quaternion.FromToRotation(Vector3.forward, lookVector);
    }
Beispiel #3
0
    public void Act()
    {
        Vector3 currentPosition = c_cameraData.v_currentPosition;
        // Vector3 currentTargetPosition = c_cameraData.v_targetPosition;
        Vector3 currentTargetDirection = c_cameraData.v_targetDirection;
        Vector3 lookVector             = c_cameraData.v_currentDirection;

        // cart_focus.PointVectorAt(ref currentPosition, ref currentTargetPosition, ref lookVector);
        FocusCartridge.PointVectorAtLerp(ref currentPosition, currentTargetDirection, Time.deltaTime);

        c_cameraData.v_currentDirection = lookVector;
    }